dateutil
Useful extensions to the standard Python datetime features (by dateutil)
pytz
pytz Python historical timezone library and database (by stub42)
Our great sponsors
dateutil | pytz | |
---|---|---|
3 | 2 | |
2,242 | 309 | |
1.5% | - | |
6.0 | 7.1 | |
about 2 months ago | 3 months ago | |
Python | C | |
GNU General Public License v3.0 or later | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
dateutil
Posts with mentions or reviews of dateutil.
We have used some of these posts to build our list of alternatives
and similar projects.
-
Using Openpyxl - keep min date, handle line breaks, handle duplicates
Here is an example for a single cell (I'm using the dateutil package to parse the strings):
-
[python] dateutil exception handling making zero sense
The parser module gives direct access to parser.ParserError, which could be accessed by way of parser.ParserError.
-
what does this expression mean in regex?
[1] https://github.com/dateutil/dateutil
pytz
Posts with mentions or reviews of pytz.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-05-12.
-
Pytz: The Fastest Footgun in the West
Well, pytz actually is technically flawed at the moment because it cannot read TZif Version 2+ files, so it breaks for dates >2038 (and it would break if you tried to point it at system data generated with zic's "slim" mode), see this: https://github.com/stub42/pytz/issues/48
But you are right that pandas' use of pytz is benign and as far as I know doesn't suffer the same usability issues.
-
Searching for a date/time library with full historical TZ data and adjustments given epoch
If I understand this correctly from the documentation, pytz (or rather the tz database for which the library provides an interface) accounts for political shifts/changes in time zone data / DST.
What are some alternatives?
When comparing dateutil and pytz you can also consider the following projects:
arrow - 🏹 Better dates & times for Python
Pendulum - Python datetimes made easy
Maya - Datetimes for Humans™
moment - A Python library for dealing with dates
delorean - Delorean: Time Travel Made Easy
PyTime - PyTime is an easy-use Python module which aims to operate date/time/datetime by string.