On Sat, Apr 18, 2009 at 04:41, Andrew Romero <romero...@yahoo.com> 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])  ?

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,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to