yeah:
In [1]: import datetime
In [2]: import time
In [3]: t = time.time()
In [4]: datetime.datetime.fromtimestamp(t)
Out[4]: datetime.datetime(2009, 4, 18, 9, 54, 55, 125239)
Cheers,
···
On Sat, Apr 18, 2009 at 04:41, Andrew Romero <romeroajr@...9...> wrote:
are those unix timestamps (from 1970-01-01)?
They were generated in another script using python
str(time.time())In any case, you have to convert those in datetime objects
Is this done with
datetime.fromtimestamp(timestamp[, tz]) ?
--
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi