[New-bugs-announce] [issue2568] Seconds range in time unit

Anton Fedorov report at bugs.python.org
Mon Apr 7 08:53:13 CEST 2008


New submission from Anton Fedorov <datacompboy at call2ru.com>:

"%S	Second as a decimal number [00,61].	(2)
(2) The range really is 0 to 61; this accounts for leap seconds and the 
(very rare) double leap seconds."

That is wrong. There NEVER can be two leap seconds in one moment, since UTC 
time keep the difference between UTC and UT1 from exceeding ±0.9 s.

Leap seconds occur only at the end of a UTC month, and have only ever been 
inserted at the end of June 30 or December 31.

So, 61 is wrong, real seconds range from 0 to 60 inclusive.

----------
components: Library (Lib)
messages: 65067
nosy: datacompboy
severity: normal
status: open
title: Seconds range in time unit
type: behavior

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2568>
__________________________________


More information about the New-bugs-announce mailing list