[egenix-users] Date conversion weirdness
Graham Ashton
gashton at cmedltd.com
Tue Oct 8 13:13:00 CEST 2002
Hi. Can anybody explain what is happening here, and how I should get
round it?
% python
Python 2.2 (#2, Mar 11 2002, 13:24:00)
[GCC 2.95.3 20010315 (release)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from mx.DateTime import DateTime, gmtime
>>> dt = DateTime(1971, 06, 23)
>>> dt2 = gmtime(dt)
>>> dt2.strftime('%d-%b-%Y')
'22-Jun-1971'
I was expecting 23-Jun-1971 to pop out of the end of there.
It doesn't happen for most dates, but seems to be a problem for a
significant portion of 1971!
--
Graham Ashton
More information about the egenix-users
mailing list