New user having much trouble with formating dates on x-axis


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)



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

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:
Me at Debian: