datetime.timedelta.seconds is not what you think it is
Created by: das-g
A timedelta
object represents a duration as days
, seconds
and microseconds
. To convert a timedelta
object to a duration in seconds, use its total_seconds()
method.
Not an issue with our current use, as our durations happen to have sub-day length and don't require sub-second resolution. Should be fixed anyway, though.