Table of Contents

Enum NPY_DATETIMEUNIT

Namespace
NumSharp
Assembly
NumSharp.dll

NumPy's NPY_DATETIMEUNIT (ndarraytypes.h): the time unit a datetime64 / timedelta64 value counts in. The enum values are NumPy's — including the gap at 3 where the 1.6 business-day unit sat — because unit ORDER is semantic (a larger value is a finer unit) and NumPy's casting rules compare them.

public enum NPY_DATETIMEUNIT

Fields

NPY_FR_ERROR = -1

Error or undetermined.

NPY_FR_Y = 0

Years.

NPY_FR_M = 1

Months.

NPY_FR_W = 2

Weeks.

NPY_FR_D = 4

Days.

NPY_FR_h = 5

Hours.

NPY_FR_m = 6

Minutes.

NPY_FR_s = 7

Seconds.

NPY_FR_ms = 8

Milliseconds.

NPY_FR_us = 9

Microseconds.

NPY_FR_ns = 10

Nanoseconds.

NPY_FR_ps = 11

Picoseconds.

NPY_FR_fs = 12

Femtoseconds.

NPY_FR_as = 13

Attoseconds.

NPY_FR_GENERIC = 14

Unbound units — can convert to anything (the unit of a bare M8 / m8 and of NaT).