[Python-bugs-list] strptime gives format mismatch when time zone present (PR#164)

guido@CNRI.Reston.VA.US guido@CNRI.Reston.VA.US
Tue, 21 Dec 1999 09:11:33 -0500 (EST)


> time.strptime() seems to fail when the time zone ('%Z') appears in
> the format string.  when it is omitted from the format string (and
> from the string being parsed), strptime() works fine.

Reporting this as a Python bug is not going to fix it.  The
time.strptime() function in Python is a very thin wrapper around the
strptime() function in the C library.  We get a lot of complaints
about this, but there's no way that we're able to fix this -- it's the
C strptime() function that needs to be fixed.  Write to your friendly
Linux support people!

--Guido van Rossum (home page: http://www.python.org/~guido/)