How to calculate two time?
areyoulookon at gmail.com
Thu Oct 9 14:41:03 CEST 2008
but can you tell me what format is it?
in the str there is a float and I can not deal with it
On Oct 9, 7:20 pm, s... at pobox.com wrote:
> lookon> Thank you for your help.It works. However, I am using Google
> lookon> App Engine and cannot import dateutil and epsilon.
> I don't know how Google App Engine works, but are you not able to install
> pure Python modules?
> lookon> Are there any other ways?
> Take a look at the time.strptime function to generate a tuple, then use
> t = time.strptime(timestamp, format)
> t1 = datetime.datetime(*t[0:6])
> Note that with this solution you will have to handle the timezone offset
More information about the Python-list