1
Pytz: The Fastest Footgun in the West (2018)
An explanation of the differences between dateutil and pytz's time zone models and why people tend to misuse pytz and introduce bugs into their datetime code.
Starting in Python 3, naïve datetimes stopped being considered "unitless" datetimes and started representing...
Visit blog.ganssle.io → On Hacker News Oct 2021 – May 2023
Software Engineering 3Programming Languages 2Tools & Productivity 1
An explanation of the differences between dateutil and pytz's time zone models and why people tend to misuse pytz and introduce bugs into their datetime code.
A public service announcement about the dangers of utcnow and utcfromtimestamp and the benefits of using their replacements.