On Wed, Apr 17, 2013 at 7:10 PM, Chris Barker - NOAA Federal < chris.bar...@noaa.gov> wrote:
> On Wed, Apr 17, 2013 at 1:09 PM, Bob Nnamtrop <bob.nnamt...@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 > > hours. > > > > In [21]: np.datetime64('1970-01-01 00') > > Out[21]: numpy.datetime64('1970-01-01T00:00-0700','h') > > > > In [22]: np.datetime64('1969-12-31 00') > > Out[22]: numpy.datetime64('1969-12-31T00:00Z','h') > > In [111]: np.datetime64('1970-01-01 00').view(np.int64) > Out[111]: 8 > > indicates that it is doing the input transition differently, as the > underlying value is wrong for one. > (another weird note -- I;m in pacific time, which is -7 now, with > DST....so why the 8?) > Aren't we on standard time at Jan 1st? So, at that date, you would have been -8. Ben Root
_______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion