[Python-Dev] Python strptime

Peter Funk pf@artcom-gmbh.de
Tue, 18 Jun 2002 09:27:13 +0200 (CEST)


Hi,

Brett Cannon:
[...]
> The purpose is that strptime is not common across all platforms.  As it
> stands now, it requires that the underlying C library support it.  Since
> it is not specified in ANSI C, not all have it.  glibc has it so most UNIX
> installs have it.  But Windows doesn't.  It is not meant specifically for
> Windows, but it happens to be the major OS that lacks it.
[...]

There is some relationship betweeen the time module and the calendar
module, which is also a long time member of the Python standard
library.  If your new code becomes part of the standard library,
please have a look at the calendar module and its documentation.
At least crossreferencing pointers should be added.  May be someone
will come up with a "locale-awareness" patch to calendar?
Currently month and weekday names are constants hardcoded in
english in calendar.py.  The stuff you wrote might help here.

Regards, Peter
-- 
Peter Funk, Oldenburger Str.86, D-27777 Ganderkesee, Germany, Fax:+49 4222950260
office: +49 421 20419-0 (ArtCom GmbH, Grazer Str.8, D-28359 Bremen, Germany)