trouble with time --again
nephish at xit.net
nephish at xit.net
Tue Aug 30 13:42:41 EDT 2005
Hey there,
could someone show me where i am going wrong here?
>>> date1 = '2005-01-01 8:20:00'
>>> date1 = strptime('%Y-%m-%d %H:%M:%S',date1)
raise ValueError("time data did not match format: data=%s fmt=%s" %
ValueError: time data did not match format: data=%Y-%m-%d%H:%M:%S
fmt=2005-01-01 8:20:00
i have looked over the strptime and strftime over and over, dont get
where i am missing it here.
thanks
More information about the Python-list
mailing list