python-sanicargs icon indicating copy to clipboard operation
python-sanicargs copied to clipboard

use dateutils.parser to parse second fractions and timezones

Open sloev opened this issue 7 years ago • 0 comments

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))

sloev avatar Dec 21 '18 09:12 sloev