Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import time
- # make sure we have a strptime function!
- try:
- strptime = time.strptime
- except AttributeError:
- from strptime import strptime
- print strptime("31 Nov 00", "%d %b %y")
- print strptime("1 Jan 70 1:30pm", "%d %b %y %I:%M%p")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement