simpler increment of time values?

rurpy at rurpy at
Thu Jul 5 20:15:04 CEST 2012

On Thursday, July 5, 2012 11:34:16 AM UTC-6, John Nagle wrote:
>    You can also call time.time(), and get the number of seconds
> since the epoch (usually 1970-01-01 00:00:00 UTC). That's just
> a number, and you can do arithmetic on that.
>    Adding a datetime.time to a datetime.timedelta isn't that
> useful. 

It certainly is useful and I gave an obvious and real-
world example in my previous post.

> It would have to return a value error if the result
> crossed a day boundary.

Why?  When I turn the adjustment knob on my analog
clock it crosses the day boundary from 23:59 to 0:00
with no problem whatsoever.  Why is Python unable
to do what billions of clocks do? 

Instead I have to convert everything to seconds and
do the same math I would have done in fortran in 1980.

Another example of Pythonic "purity beats practicality"

More information about the Python-list mailing list