Fechas

De WikiEducator
Saltar a: navegación, buscar


http://docs.python.org/2/library/datetime.html

>>> from datetime import datetime
>>> dt = '16-MAR-2010 03:37:04'
>>> datetime.strptime(dt, " %d-%b-%Y %H:%M:%S ")
datetime.datetime(2010, 3, 16, 3, 37, 4)