[New-bugs-announce] [issue18718] datetime documentation contradictory on leap second support

David Wolever report at bugs.python.org
Mon Aug 12 22:29:36 CEST 2013


New submission from David Wolever:

The documentation for the `%S` formatter suggests that it supports leap seconds, but the footnote contradicts that:

> The range really is 0 to 61; according to the Posix standard this
> accounts for leap seconds and the (very rare) double leap seconds.
> The time module may produce and does accept leap seconds since it is
> based on the Posix standard, but the datetime module does not accept
> leap seconds in strptime() input nor will it produce them in
> strftime() output.

I propose that the documentation be updated to mirror the 3.X documentation: no leap second in the example and a footnote which makes note of that and suggests using the time module.

----------
assignee: wolever
messages: 195008
nosy: wolever
priority: normal
severity: normal
status: open
title: datetime documentation contradictory on leap second support
versions: Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18718>
_______________________________________


More information about the New-bugs-announce mailing list