mxDateTime function DateFromString gives wrong year

Sibylle Koczian Sibylle.Koczian at Bibliothek.Uni-Augsburg.de
Wed Mar 24 09:09:39 EST 2004


This is very nearly a repetition of a post by Peter Hansen from 
2002-07-07 which never got an answer:

 >>> x = mx.DateTime.Parser.DateFromString('Nov 2003')
 >>> x
<DateTime object for '2004-11-20 00:00:00.00' at a61ba0>

Using mx.DateTime Version 2.0.5 for Python 2.3 and ActivePython 2.3.2.

The original posting had the same problem with 'October 29/2000'. This 
isn't corrected either, it still converts to 2004-10-29.

Koczian

-- 
Dr. Sibylle Koczian
Universitaetsbibliothek, Abt. Naturwiss.
D-86135 Augsburg

Tel.: (0821) 598-2400, Fax : (0821) 598-2410
e-mail : Sibylle.Koczian at Bibliothek.Uni-Augsburg.DE




More information about the Python-list mailing list