News for hackers. Stuff that matters.
Re:Ten Python datetime pitfalls, and what libraries are (not... by make3 on Sunday February 18, 2024 @11:34AM (#39420392)
... a huge fraction of Python code runs on servers everywhere
Re:Ten Python datetime pitfalls, and what libraries are (not... by azinman2 on Sunday February 18, 2024 @01:37PM (#39421697)
And a bunch isn’t.

Time is hard no matter what. Having a variety of types and options is a good thing, as long as everything is explicit and convertible.

The wonder if obj-c/swift do well here with NSDate/Date representing a moment in time separate from any calendar/time zone… although the name is confusing for what it represents.

Re:Ten Python datetime pitfalls, and what libraries are (not... by bongodongobob on Sunday February 18, 2024 @01:42PM (#39421753)
Which is exactly what you use time zones for.