The dateutil Module
The third-party package dateutil (http://labix.org/python-dateutil) offers modules to manipulate dates in various ways, including time deltas, recurrence, time zones, and fuzzy parsing. (See the module’s web site for complete documentation of its rich functionality.) dateutil’s main modules are the following.
easter |
Returns the from dateutil import easter print easter.easter(2006) emits |
parser |
Returns the from dateutil import parser
print parser.parse("Saturday, January 28, 2006, at
11:15pm")
emits |
relativedelta |
You can call |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access