# Adapted from http://delete.me.uk/2005/03/iso8601.html
# Note: This regex ensures that all ISO8601 timezone formats are accepted - but, due to legacy support for other timestrings, not all incorrect formats can be rejected.
...
...
@@ -45,19 +45,29 @@ TIMEZONE_REGEX = re.compile(
# start of the gregorian calendar
gregorian=real_datetime(1582,10,15)
def_datesplit(timestr):
"""split a time string into two components, units and the remainder