Advertisement
Guest User

Untitled

a guest
May 22nd, 2015
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. import time
  2.  
  3. # make sure we have a strptime function!
  4. try:
  5. strptime = time.strptime
  6. except AttributeError:
  7. from strptime import strptime
  8.  
  9. print strptime("31 Nov 00", "%d %b %y")
  10. print strptime("1 Jan 70 1:30pm", "%d %b %y %I:%M%p")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement