Was running some tests and the below code:
from dateutil import parser as dparser
print((dparser.parse('5.6h') - dparser.parse('0s')).total_seconds())
prints:
20100.0
I would expect it to print 20160.0 (off my 60 seconds).
Specifically it looks like:
dparser.parse('5.6h')
datetime.datetime(2017, 7, 26, 5, 35)
Should actually be returning datetime.datetime(2017, 7, 26, 5, 36)
I see this behavior with version 2.5.3 - wondering if this is expected or if there is a rounding/truncation bug somewhere?