Converting a string to time - simple task but don't know how to do it!
marklists at mceahern.com
Sat Sep 14 21:34:22 CEST 2002
s = "<<your time string>>"
t = time.strptime(s)
I think strptime is only supported on Unix?
So if you get an AttributeError when you try that, your best best is to use
the mx.DateTime package (a google search should find that).
mx.DateTime works like this:
d = mx.DateTime.DateTimeFrom(your_time_string)
d2 = mx.DateTime.now()
diff = d2 - d1
More information about the Python-list