Is it possible to construct a Python date using only standard libs with a http string timestamp -


this question has answer here:

i have string timestamps this:

"wed, 31 jul 2013 13:03:38 gmt"

i couldn't see in python docs might have missed it.

or if not, assume parsing of string - because has set format. pointers on how started helpful.

the dates rfc 822 compliant.

yes! need use strptime()

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

here link documentation:

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


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -