mirror of
https://github.com/storytold/craft-launcher.git
synced 2026-12-02 20:22:35 -05:00
Say the library computes month and day; time-of-day is plain arithmetic
Narrows the range-extension wording: the date library computes the calendar fields, and splitting seconds into hours, minutes and seconds is ordinary arithmetic, which is what the code does.
This commit is contained in:
1 file changed
+3
-2
@@ -116,8 +116,9 @@ only; English where there is none): never bundle a CJK font, they are 10 MB and
|
||||
6. **Time goes through `jiff`** (workspace dependency). Never hand-roll UTC/calendar conversion
|
||||
(days-to-date algorithms, leap-year math); a module owns only its output format string. The one
|
||||
exception is range extension: past the years jiff can represent, shift the date by whole 400-year
|
||||
Gregorian cycles (146,097 days, after which the calendar repeats), let jiff compute the month,
|
||||
day and time, and add the cycles back to the year.
|
||||
Gregorian cycles (146,097 days, after which the calendar repeats), let jiff compute the month and
|
||||
day, and add the cycles back to the year (splitting seconds into hours, minutes and seconds is
|
||||
plain arithmetic).
|
||||
|
||||
## 3. Before you finish a task
|
||||
|
||||
|
||||
Reference in new issue
Block a user