mxDateTime: does strptime not exist?

Remco Gerlich scarblac at pino.selwerd.nl
Thu May 3 04:29:41 EDT 2001


Remco Gerlich <scarblac at pino.selwerd.nl> wrote in comp.lang.python:
> The docs also say: "Availability: most modern Unix systems".
> Windows simply doesn't have the function.
> 
> Andrew Markebo made a pure Python version you can use (LGPL license):
> http://www.fukt.hk-r.se/~flognat/hacks/strptime.py

Actually, I didn't notice you were doing it with mxDateTime (the Unix
comment is from the time.strptime doc in the Python lib ref). But the answer
still mostly holds, I think. The time tuple that strptime.py returns can be
converted with DateTime.mktime(tup).

-- 
Remco Gerlich



More information about the Python-list mailing list