@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.
@@ -42,10 +42,14 @@ export interface WorkPattern {
42
42
  updatedAt?: number;
43
43
  }
44
44
  /**
45
- * Whole calendar days between two instants.
45
+ * Whole days between two instants, rounded.
46
46
  *
47
- * Counted through `Date`, not by dividing milliseconds: two days a year are 23 or 25 hours long,
48
- * and a rotation that slips a day every March is a rota nobody trusts again.
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. */