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 |
Get Python in a Nutshell, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.