@opencxh/domain 1.233.1 → 1.234.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entities/planning/pattern.d.ts +7 -3
- package/dist/index.cjs +6 -6
- package/dist/index.js +481 -480
- package/package.json +1 -1
|
@@ -42,10 +42,14 @@ export interface WorkPattern {
|
|
|
42
42
|
updatedAt?: number;
|
|
43
43
|
}
|
|
44
44
|
/**
|
|
45
|
-
* Whole
|
|
45
|
+
* Whole days between two instants, rounded.
|
|
46
46
|
*
|
|
47
|
-
*
|
|
48
|
-
*
|
|
47
|
+
* **Deliberately timezone-free.** An earlier version normalised both sides to local noon, which
|
|
48
|
+
* reads the *evaluating* machine's clock — and the two timestamps come from the browser. On a
|
|
49
|
+
* UTC server a CEST Monday midnight floors to the previous Sunday, the week walks eight days
|
|
50
|
+
* instead of seven, and the eighth wraps onto cycle day zero: five eight-hour days silently
|
|
51
|
+
* became six. Rounding the raw difference needs no shared timezone and absorbs the 23- and
|
|
52
|
+
* 25-hour days of a daylight-saving change on its own.
|
|
49
53
|
*/
|
|
50
54
|
export declare function calendarDaysBetween(from: number, to: number): number;
|
|
51
55
|
/** Which day of the cycle a date falls on. Negative offsets wrap the right way round. */
|