3 ms·
> Datetime + tz name: a point in time and space that is responsive to time zone changes No. It isn't a point in time, because time zone transition rules can an
by burntsushi 1y ago
> Datetime + tz name: a point in time and space that is responsive to time zone changes
No. It isn't a point in time, because time zone transition rules can and do change. You need an offset as well. Then you can choose which thing you want to prioritize[1] when converting it to an instant in time.
This is what RFC 9557 is for.
[1]: https://docs.rs/jiff/latest/jiff/tz/enum.OffsetConflict.html https://docs.rs/jiff/latest/jiff/tz/enum.OffsetConflict.html
- lmm 1y agoWhat use case is there for preferring the offset (that wouldn't be better served by using instants)?