Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset
Comments Off

Python;*: Exemple de conversion des dates

 date
{filelink=16873}

import time
 
try:
    strptime = time.strptime
except AttributeError:
    from strptime import strptime
 
print strptime("31 Nov 2012", "%d %b %y")
print strptime("1 Jan 70 1:30pm", "%d %b %y %I:%M%p")

Livres Sur ce Sujet

----------------------------------------------------------------------------

Comments are closed.