2

I have string timestamps like this:

"Wed, 31 Jul 2013 13:03:38 GMT"

I couldn't see anything in python docs but I might have missed it.

Or if not, I assume I could do some parsing of the string - because it has a set format. any pointers on how to get started would be helpful.

The dates are RFC 822 compliant.

Angus Comber
  • 9,316
  • 14
  • 59
  • 107

1 Answers1

1

Yes! You need to use strptime()

import time
time.strptime("30 Nov 00", "%d %b %y")

Here is the link to the documentation:

http://docs.python.org/2/library/time.html#time.strptime

Charlie
  • 393
  • 3
  • 10