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 = -1Error or undetermined.
NPY_FR_Y = 0Years.
NPY_FR_M = 1Months.
NPY_FR_W = 2Weeks.
NPY_FR_D = 4Days.
NPY_FR_h = 5Hours.
NPY_FR_m = 6Minutes.
NPY_FR_s = 7Seconds.
NPY_FR_ms = 8Milliseconds.
NPY_FR_us = 9Microseconds.
NPY_FR_ns = 10Nanoseconds.
NPY_FR_ps = 11Picoseconds.
NPY_FR_fs = 12Femtoseconds.
NPY_FR_as = 13Attoseconds.
NPY_FR_GENERIC = 14Unbound units — can convert to anything (the unit of a bare
M8/m8and of NaT).