Tweak the computation of seconds from a datetime.timedelta object, so
that we consider only the whole seconds.