Message77861
| Author |
vstinner |
| Recipients |
amaury.forgeotdarc, belopolsky, brett.cannon, catlee, erik.stephens, guettli, jribbens, lemburg, skip.montanaro, srittau, steve.roberts, tim.peters, tomster, vstinner |
| Date |
2008年12月15日.12:03:12 |
| SpamBayes Score |
6.285564e-10 |
| Marked as misclassified |
No |
| Message-id |
<1229342593.33.0.5028608851.issue1673409@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
> The number of seconds in a day is not fixed (due to leap seconds)
POSIX timestamp doesn't count leap seconds. It looks like the datetime
module is not aware of the leap seconds:
>>> print datetime.datetime(2006, 1, 1) - datetime.datetime(2005, 12,
31)
1 day, 0:00:00
About my method: I finally prefer datetime/datetime or
datetime//datetime instead of a toseconds() method. And to convert a
timestamp to a timestamp: see my patch attached to issue #2736. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2008年12月15日 12:03:13 | vstinner | set | recipients:
+ vstinner, lemburg, tim.peters, skip.montanaro, brett.cannon, jribbens, srittau, guettli, amaury.forgeotdarc, belopolsky, catlee, tomster, erik.stephens, steve.roberts |
| 2008年12月15日 12:03:13 | vstinner | set | messageid: <1229342593.33.0.5028608851.issue1673409@psf.upfronthosting.co.za> |
| 2008年12月15日 12:03:12 | vstinner | link | issue1673409 messages |
| 2008年12月15日 12:03:12 | vstinner | create |
|