Do you mean epoch time? if so, the below example would work.
import time,datetime
t = datetime.datetime.now()
print t
2007-02-20 13:09:34.851000
print "Epoch Seconds:", time.mktime(t.timetuple())
Epoch Seconds: 1171994974.0
# go the other way
epochtime = 1171994974
now = datetime.datetime.
Vishal Bhargava schrieb:
> Is there an inbuilt library in Python which you can use to convert time in
> seconds to hh:mm:ss format?
Module datetime. Did you even _bother_ to google or skim the docs?
Diez
--
http://mail.python.org/mailman/listinfo/python-list
Vishal Bhargava wrote:
> Is there an inbuilt library in Python which you can use to convert time in
> seconds to hh:mm:ss format?
> Thanks,
> Vishal
>
Please don't ask a question by editing a reply to an existing thread:
your question is now filed on many people's computers under "How to test
if
Is there an inbuilt library in Python which you can use to convert time in
seconds to hh:mm:ss format?
Thanks,
Vishal
--
http://mail.python.org/mailman/listinfo/python-list