2 ms·
You still keep everything in UTC in this new world, it's just the object you use internally now knows that it's UTC and makes it so you can't accidentally do ca
by Spivak 3y ago
You still keep everything in UTC in this new world, it's just the object you use internally now knows that it's UTC and makes it so you can't accidentally do calculations on two naive datetimes which happen to be in different timezones.
You get to have the typing help you enforce that everything is in UTC.
- konschubert 3y agoAnd you have to treat the timezone offset as information-free. As in, 02:00+00:00 and 04:00+02:00 are absolutely equivalent representations of the same data. If you need to know the timezone in which to display a time, you save that timezone separately