[Numpy-discussion] datetime64 1970 issue

Benjamin Root ben.root at ou.edu
Thu Apr 18 09:20:34 EDT 2013


On Thu, Apr 18, 2013 at 2:27 AM, Joris Van den Bossche <
jorisvandenbossche at gmail.com> wrote:

> ANyone tested this on Windows?
>>
>
>
> On Windows 7, numpy 1.7.0 (Anaconda 1.4.0 64 bit), I don't even get a
> wrong answer, but an error:
>
> In [3]: np.datetime64('1969-12-31 00')
> Out[3]: numpy.datetime64('1969-12-31T00:00Z','h')
>
> In [4]: np.datetime64('1970-01-01 00')
> ---------------------------------------------------------------------------
> OSError                                   Traceback (most recent call last)
> <ipython-input-4-ebf323268a4e> in <module>()
> ----> 1 np.datetime64('1970-01-01 00')
>
> OSError: Failed to use 'mktime' to convert local time to UTC
>
>
Have you tried np.test()?  I know some of the tests I added awhile back
utilized pre-epoch dates to test sorting and min/max finding.

Ben Root
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20130418/d13da7e8/attachment.html>


More information about the NumPy-Discussion mailing list