tags:

views:

41

answers:

1

Hi!

SOAP client return seconds to end event.

How can I get from this seconds date in format "yyy-mm-dd hh:ii:ss"

+3  A: 

A quick example (add 50000 seconds from now with datetime.timedelta):

>>> import datetime
>>> time_now = datetime.datetime.now()
>>> time_event = time_now + datetime.timedelta(seconds=50000)
>>> time_event.strftime("%Y-%m-%d %H:%M:%S")
'2010-05-08 12:07:05'
ChristopheD