@@ -7,9 +7,6 @@ from cpython cimport PyUnicode_Check, PyUnicode_AsASCIIString
7
7
cdef extern from " numpy/ndarrayobject.h" :
8
8
ctypedef int64_t npy_datetime
9
9
10
- cdef extern from " numpy/npy_common.h" :
11
- ctypedef unsigned char npy_bool
12
-
13
10
cdef extern from " datetime/np_datetime.h" :
14
11
ctypedef enum PANDAS_DATETIMEUNIT:
15
12
PANDAS_FR_Y
@@ -37,11 +34,9 @@ cdef extern from "datetime/np_datetime.h":
37
34
38
35
39
36
cdef 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 ,
41
38
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)
45
40
46
41
cdef inline int _string_to_dts(object val, pandas_datetimestruct* dts,
47
42
int * out_local, int * out_tzoffset) except ? - 1 :
@@ -62,11 +57,8 @@ cdef inline int _cstring_to_dts(char *val, int length,
62
57
pandas_datetimestruct* dts,
63
58
int * out_local, int * out_tzoffset) except ? - 1 :
64
59
cdef:
65
- npy_bool special
66
- PANDAS_DATETIMEUNIT out_bestunit
67
60
int result
68
61
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)
72
64
return result
0 commit comments