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