[Numpy-discussion] datetime64 1970 issue
ondrej.certik at gmail.com
Wed Apr 17 17:21:09 EDT 2013
On Wed, Apr 17, 2013 at 2:09 PM, Bob Nnamtrop <bob.nnamtrop at gmail.com> wrote:
> It would seem that before 1970 the dates do not include the time zone
> adjustment while after 1970 they do. This is the source of the extra 7
> In : np.datetime64('1970-01-01 00')
> Out: numpy.datetime64('1970-01-01T00:00-0700','h')
> In : np.datetime64('1969-12-31 00')
> Out: numpy.datetime64('1969-12-31T00:00Z','h')
> I saw the other thread about the time zone issues and I think getting rid of
> timezones (perhaps unless they are explicitly requested) is the right thing
> to do.
I think you are right. The timezone conversion only happens for years >= 1970:
Which explains the problem.
More information about the NumPy-Discussion