[SciPy-Dev] Baffled by type_check.datetime_data

Robert Kern robert.kern@gmail....
Wed Apr 28 10:57:30 CDT 2010

On Tue, Apr 27, 2010 at 20:57, David Goldsmith <d.l.goldsmith@gmail.com> wrote:
>>>> np.version.version
> '1.4.0'
>>>> from numpy.lib.type_check import datetime_data as dtd
>>>> help(dtd)
> Help on function datetime_data in module numpy.lib.type_check:
> datetime_data(dtype)
>     Return (unit, numerator, denominator, events) from a datetime dtype
>>>> np.dtype(np.datetime_)
> dtype('datetime64[us]')
>>>> dtd(np.datetime_)

datatime_data() takes a dtype, not a scalar type.

Robert Kern

"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
  -- Umberto Eco

More information about the SciPy-Dev mailing list