change date format

Lars Gustäbel lars at gustaebel.de
Wed Aug 31 06:36:49 EDT 2005


[Xah Lee]
> Apache by default uses the following format for date:
> 30/Aug/2005
>
> is there a module that turn this directly into yyyymmdd?

Use time.strptime() and time.strftime().

Not a single occurrence of the f**k word. You're making progress. Keep it up!

-- 
Lars Gustäbel
lars at gustaebel.de

Truth is the invention of a liar.
(Anonymous)



More information about the Python-list mailing list