modifying a time.struct_time

Chris Angelico rosuav at gmail.com
Fri Dec 16 09:24:53 EST 2011


On Sat, Dec 17, 2011 at 12:32 AM, Ulrich Eckhardt
<ulrich.eckhardt at dominolaser.com> wrote:
> Concerning the idea to use seconds, I'd rather not, because already the
> number of seconds per minute ranges from 60 to 62, and it doesn't get better
> with things like months (28...31 days), years (365...366 days) and all other
> types built upon them.

Right, which is why I asked how important the difference between "365
days" and "1 year" is. Obviously if your goal is one entire calendar
year, then you don't want to duplicate the work of figuring out how
many seconds that is.

ChrisA



More information about the Python-list mailing list