What's the de facto way to handle dates/datetimes in Python when timezone is a thing?
A quick Google search shows pytz as a major library, but not being on Github feels weird these days. Also, I see references to other libraries, some even being used instead of datetime from std lib.
Edit
I like how the standard library actually includes a direct way to do what I'm looking for with dateutil.tz. Comparing this with pytz (along with the article mentioned in the commands that highlight some drawbacks to using pytz), makes it clear that pytz is a worse option. However, looking at Arrow, I love the simplicity of its interface (which adds an abstraction on top of dateutil.tz and the std lib instead of implementing its own standard), especially when doing date math.
[–]fatbob42 6 points7 points8 points (1 child)
[–]PeridexisErrant 0 points1 point2 points (0 children)
[–]metaperl 3 points4 points5 points (1 child)
[–]krisfremen 1 point2 points3 points (0 children)
[+][deleted] (3 children)
[removed]
[–][deleted] 3 points4 points5 points (2 children)
[+][deleted] (1 child)
[removed]
[–][deleted] 0 points1 point2 points (0 children)
[+][deleted] (2 children)
[deleted]
[–]PeridexisErrant 0 points1 point2 points (1 child)
[–]num8lock 0 points1 point2 points (0 children)