@@ -7,9 +7,6 @@ from cpython cimport PyUnicode_Check, PyUnicode_AsASCIIString
77cdef extern from " numpy/ndarrayobject.h" :
88 ctypedef int64_t npy_datetime
99
10- cdef extern from " numpy/npy_common.h" :
11- ctypedef unsigned char npy_bool
12-
1310cdef extern from " datetime/np_datetime.h" :
1411 ctypedef enum PANDAS_DATETIMEUNIT:
1512 PANDAS_FR_Y
@@ -37,11 +34,9 @@ cdef extern from "datetime/np_datetime.h":
3734
3835
3936cdef extern from " datetime/np_datetime_strings.h" :
40- int parse_iso_8601_datetime(char * str , int len , PANDAS_DATETIMEUNIT unit,
37+ int parse_iso_8601_datetime(char * str , int len ,
4138 pandas_datetimestruct * out,
42- int * out_local, int * out_tzoffset,
43- PANDAS_DATETIMEUNIT * out_bestunit,
44- npy_bool * out_special)
39+ int * out_local, int * out_tzoffset)
4540
4641cdef inline int _string_to_dts(object val, pandas_datetimestruct* dts,
4742 int * out_local, int * out_tzoffset) except ? - 1 :
@@ -62,11 +57,8 @@ cdef inline int _cstring_to_dts(char *val, int length,
6257 pandas_datetimestruct* dts,
6358 int * out_local, int * out_tzoffset) except ? - 1 :
6459 cdef:
65- npy_bool special
66- PANDAS_DATETIMEUNIT out_bestunit
6760 int result
6861
69- result = parse_iso_8601_datetime(val, length, PANDAS_FR_ns,
70- dts, out_local, out_tzoffset,
71- & out_bestunit, & special)
62+ result = parse_iso_8601_datetime(val, length,
63+ dts, out_local, out_tzoffset)
7264 return result
0 commit comments