numpy  2.0.0
_strided_datetime_cast_data Struct Reference

Data Fields

NpyAuxData base
npy_int64 num
npy_int64 denom
npy_intp src_itemsize
npy_intp dst_itemsize
char * tmp_buffer
PyArray_DatetimeMetaData src_meta
PyArray_DatetimeMetaData dst_meta

Detailed Description

Does a datetime->datetime, timedelta->timedelta, datetime->ascii, or ascii->datetime cast

Field Documentation

The conversion fraction
For the datetime -> string conversion, the dst string length
The metadata for when dealing with Months or Years which behave non-linearly with respect to the other units.
A buffer of size 'src_itemsize + 1', for when the input string is exactly of length src_itemsize with no NULL terminator.

The documentation for this struct was generated from the following file: