module documentation
Functions to parse datetime objects.
Function | parse |
Parse a string and return a datetime.date. |
Function | parse |
Parse a string and return a datetime.datetime. |
Function | parse |
Parse a duration string and return a datetime.timedelta. |
Function | parse |
Parse a string and return a datetime.time. |
Variable | date |
Undocumented |
Variable | datetime |
Undocumented |
Variable | iso8601 |
Undocumented |
Variable | postgres |
Undocumented |
Variable | standard |
Undocumented |
Variable | time |
Undocumented |
Parse a string and return a datetime.date. Raise ValueError if the input is well formatted but not a valid date. Return None if the input isn't well formatted.
Parse a string and return a datetime.datetime. This function supports time zone offsets. When the input contains one, the output uses a timezone with a fixed offset from UTC. Raise ValueError if the input is well formatted but not a valid datetime. Return None if the input isn't well formatted.
Parse a duration string and return a datetime.timedelta. The preferred format for durations in Django is '%d %H:%M:%S.%f'. Also supports ISO 8601 representation and PostgreSQL's day-time interval format.