strftime in python 2.2

Flyzone flyzone at technologist.com
Mon Aug 13 09:43:51 EDT 2007


I'm trying to make work this code in python 2.2.3:

check=datetime.datetime.today().strftime("%H%M")

but datetime is not supported in that version but just in the later.
I can't upgrade python, too many dependencies in a critical system.
How can i convert that string to have the same result?

Hope someone can help me,
Thanks in advance




More information about the Python-list mailing list