python-sanicargs
python-sanicargs copied to clipboard
use dateutils.parser to parse second fractions and timezones
if we use dateutils (pip install python-dateutil) we can parse datetimes better:
>>> parser.parse('2018-12-21T08:35:01.0999+07:00')
datetime.datetime(2018, 12, 21, 8, 35, 1, 99900, tzinfo=tzoffset(None, 25200))