On Tue, Jul 20, 2010 at 6:31 PM, Greg Hennessy <greg.henne...@cox.net> wrote:
> On 2010-07-20, Rami Chowdhury <rami.chowdh...@gmail.com> wrote:
>> If you have a sufficiently recent version of Python, have you
>>considered time.strptime:
>>http://docs.python.org/library/time.html#time.strptime ?
>
> Given the documentation talks about "double leap seconds" which don't
> exist, why should this code be trusted?

Because they exist(ed) in POSIX. See
http://www.ucolick.org/~sla/leapsecs/onlinebib.html :
"""
The standards committees decided that POSIX time should be UTC, but
the early POSIX standards inexplicably incorporated a concept which
never existed in UTC -- the ``double leap second''. This mistake
reportedly existed in the POSIX standard from 1989, and it persisted
in POSIX until at least 1997.
"""

Cheers,
Chris
--
http://blog.rebertia.com
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to