|
|
|
|
|
by bhargav
1138 days ago
|
|
> The title of this post claims that pytz is the fastest footgun in the west, by which I mean that pytz is a quite well-optimized library, and historically it has been faster than dateutil.tz Wat. The author has no idea what a foot gun is. Pytz is a must because using the standard library and timezone manipulations often leads to bugs. There are nuances around “naive” date times where one can easily just add a fake timezone value, not realizing that the time didn’t actually get localized to the timezone. There are other libraries such as Arrow and Pendulum worth checking out but pytz is probably enough. |
|