Datetime API
NumPy represents dates internally using an int64 counter and a unit metadata struct. Time differences are represented similarly using an int64 and a unit metadata struct. The functions described below are available to to facilitate converting between ISO 8601 date strings, NumPy datetimes, and Python datetime objects in C.
Data types
In addition to the npy_datetime and npy_timedelta typedefs
for npy_int64, NumPy defines two additional structs that represent
time unit metadata and an “exploded” view of a datetime.
- type