mirror of
https://github.com/BurntSushi/jiff.git
synced 2025-12-23 08:47:45 +00:00
Basically, if callers opt into days being invariant---and thus no relative date is required to resolve its length---then weeks are also treated as invariant. Temporal doesn't do this. As I understand it, I think the reasoning is that they might some day support calendars that don't use 7 day weeks. However, I think it's still pretty unlikely for Jiff to support non-Gregorian calendars (other than things like the ISO 8601 week date calendar). And moreover, I believe the only calendars to use weeks that aren't 7 days are ancient calendars. I believe all actively used calendars use 7 day weeks. So for this assumption to be wrong, Jiff would not only need to support non-Gregorian calendars but _ancient_ non-Gregorian calendars. I think that's probably never going to happen and is best left to specialty crates. Because of that, I think it's say to support invariant weeks *when* the caller opts into invariant days. Closes #136 |
||
|---|---|---|
| .. | ||
| tc39_262 | ||
| lib.rs | ||