numpy 2.0.0
|
#include <Python.h>
#include <time.h>
#include <numpy/arrayobject.h>
#include "npy_config.h"
#include "numpy/npy_3kcompat.h"
#include "numpy/arrayscalars.h"
#include "methods.h"
#include "_datetime.h"
#include "datetime_strings.h"
Defines | |
#define | PY_SSIZE_T_CLEAN |
#define | NPY_NO_DEPRECATED_API |
#define | _MULTIARRAYMODULE |
Functions | |
NPY_NO_EXPORT int | parse_iso_8601_datetime (char *str, int len, NPY_DATETIMEUNIT unit, NPY_CASTING casting, npy_datetimestruct *out, npy_bool *out_local, NPY_DATETIMEUNIT *out_bestunit, npy_bool *out_special) |
NPY_NO_EXPORT int | get_datetime_iso_8601_strlen (int local, NPY_DATETIMEUNIT base) |
static NPY_DATETIMEUNIT | lossless_unit_from_datetimestruct (npy_datetimestruct *dts) |
NPY_NO_EXPORT int | make_iso_8601_datetime (npy_datetimestruct *dts, char *outstr, int outlen, int local, NPY_DATETIMEUNIT base, int tzoffset, NPY_CASTING casting) |
NPY_NO_EXPORT PyObject * | array_datetime_as_string (PyObject *NPY_UNUSED(self), PyObject *args, PyObject *kwds) |
#define _MULTIARRAYMODULE |
#define NPY_NO_DEPRECATED_API |
#define PY_SSIZE_T_CLEAN |
NPY_NO_EXPORT PyObject* array_datetime_as_string | ( | PyObject * | NPY_UNUSEDself, |
PyObject * | args, | ||
PyObject * | kwds | ||
) |
Referenced by _vec_string().
NPY_NO_EXPORT int get_datetime_iso_8601_strlen | ( | int | local, |
NPY_DATETIMEUNIT | base | ||
) |
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
References lossless_unit_from_datetimestruct(), NPY_FR_D, NPY_FR_h, and NPY_FR_m.
static NPY_DATETIMEUNIT lossless_unit_from_datetimestruct | ( | npy_datetimestruct * | dts | ) | [static] |
Referenced by get_datetime_iso_8601_strlen().
NPY_NO_EXPORT int make_iso_8601_datetime | ( | npy_datetimestruct * | dts, |
char * | outstr, | ||
int | outlen, | ||
int | local, | ||
NPY_DATETIMEUNIT | base, | ||
int | tzoffset, | ||
NPY_CASTING | casting | ||
) |
NPY_NO_EXPORT int parse_iso_8601_datetime | ( | char * | str, |
int | len, | ||
NPY_DATETIMEUNIT | unit, | ||
NPY_CASTING | casting, | ||
npy_datetimestruct * | out, | ||
npy_bool * | out_local, | ||
NPY_DATETIMEUNIT * | out_bestunit, | ||
npy_bool * | out_special | ||
) |
<blockquote> which will be used if it is.</blockquote>
<blockquote> to 0 otherwise. The values 'now' and 'today' don't get counted as local, and neither do UTC +/-#### timezone offsets, because they aren't using the computer's local timezone offset.</blockquote>
References NPY_DATETIME_NAT, NPY_FR_GENERIC, and npy_datetimestruct::year.
Referenced by _strided_to_strided_datetime_general_cast().