Message77871
> A timedelta.toseconds method (or equivalent) makes no sense.
> The number of seconds in a day is not fixed (due to leap seconds) and
> relying on such a method would introduce subtle bugs.
You are misunderstanding what timedelta is. It is a fixed-length period
of time. It is stored as a number of (24x3600-second) days, seconds and
microseconds. There is no "start date" or "end date", so the concept of
leap seconds just does not apply. |
|
Date |
User |
Action |
Args |
2008-12-15 14:58:41 | jribbens | set | recipients:
+ jribbens, lemburg, tim.peters, skip.montanaro, brett.cannon, srittau, guettli, amaury.forgeotdarc, belopolsky, pitrou, catlee, vstinner, tomster, erik.stephens, steve.roberts |
2008-12-15 14:58:41 | jribbens | set | messageid: <1229353121.07.0.325062646201.issue1673409@psf.upfronthosting.co.za> |
2008-12-15 14:58:40 | jribbens | link | issue1673409 messages |
2008-12-15 14:58:39 | jribbens | create | |
|