You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/calendar.md
+1
Original file line number
Diff line number
Diff line change
@@ -47,6 +47,7 @@ The following "invariants" (statements that are always true) hold for all built-
47
47
-`obj.with({ month: 1, day: 1 })` will always return the first day of the object's year.
48
48
-`obj.with({ month: obj.monthsInYear, day: Number.MAX_VALUE })` will always return the last day of the object's year.
49
49
-`obj.month === obj.monthsInYear` during the last month of any year
50
+
-`dayOfWeek`, `dayOfYear`, and `weekOfYear` are 1-based positive integers, that increase consecutively as time goes forward, except they reset at the boundary of a week or year, respectively
0 commit comments