DateParser¶
DateParser.py
Convert string representations of dates to Python datetime objects.
If installed, we will use the python-dateutil package to parse dates, otherwise we try to use the strptime function in the Python standard library with several frequently used formats.
- MiscUtils.DateParser.parseDate(s)¶
Return a date object corresponding to the given string.
- MiscUtils.DateParser.parseDateTime(s)¶
Return a datetime object corresponding to the given string.
- MiscUtils.DateParser.parseTime(s)¶
Return a time object corresponding to the given string.