perl regex to python

Mark Pilgrim f8dy at my-deja.com
Wed Feb 7 15:05:27 EST 2001


In article <slrn9832ec.uii.scarblac at pino.selwerd.nl>,
  scarblac at pino.selwerd.nl wrote:
> >>> import time
> >>> time.asctime(time.strptime("11/05/2001","%m/%d/%Y"))
> 'Mon Nov  5 00:00:00 2001'
>
> If you need this on Windows, there are pure Python implementations out
> there, somewhere.

http://www.fukt.hk-r.se/~flognat/hacks/strptime.py

-M
--
You're smart; why haven't you learned Python yet?
http://diveintopython.org/


Sent via Deja.com
http://www.deja.com/



More information about the Python-list mailing list