Closed
Description
There seems to be some kind of wrap-around phenomenon if your index is too far away from now. For example if I create a timeseries with an index in 1400, the timeseries I get back has an index which is some time in 1984:
In [1]: import datetime, pandas
In [2]: pandas.version.version
Out[2]: '0.8.0b2'
In [3]: ts = pandas.TimeSeries(index=[ datetime.datetime(1400,1,2) ], data = [1])
In [4]: ts
Out[4]: 1984-07-22 23:34:33.709551 1
It doesn't seem to be a display issue because I can do:
In [7]: ts.index[0].to_pydatetime()
Warning: discarding nonzero nanoseconds
Out[7]: datetime.datetime(1984, 7, 22, 23, 34, 33, 709551)
I tested I could get the same behaviour both using 32-bit and 64-bit python on windows. It seems to work fine for 0.7.3:
In [1]: import datetime, pandas
In [2]: pandas.version.version
Out[2]: '0.7.3'
In [3]: ts = pandas.TimeSeries(index=[datetime.datetime(1400,1,2)], data = [1])
In [4]: ts.index[0]
Out[4]: datetime.datetime(1400, 1, 2, 0, 0)