Ben Finney wrote:
"W. eWatson" <[email protected]> writes:How do I get the strings into a shape that will accommodate a difference? For example, t1=datetime.datetime.strptime("2009/01/02 13:01:15","%y/%m/%d %H:%M:%S") doesn't do it. ValueError: time data did not match format: data=2009/01/02 13:01:15 fmt=%y/%m/%d %H:%M:%SAs the error message indicates, the data input (the string) doesn't match the specified format. See the time format specifications at the ‘time.strftime’ documentation <URL:http://docs.python.org/library/time.html#time.strftime>. Note especially that ‘%y’ and ‘%Y’ are distinct.
Yes, see my response to the post above yours. -- http://mail.python.org/mailman/listinfo/python-list
