@@ -38,14 +38,7 @@ from cpython.datetime cimport (PyDelta_Check, PyTZInfo_Check,
38
38
# import datetime C API
39
39
PyDateTime_IMPORT
40
40
# this is our datetime.pxd
41
- from datetime cimport (
42
- pandas_datetime_to_datetimestruct,
43
- days_per_month_table,
44
- PANDAS_DATETIMEUNIT,
45
- _string_to_dts,
46
- is_leapyear,
47
- dayofweek,
48
- PANDAS_FR_ns)
41
+ from datetime cimport pandas_datetime_to_datetimestruct, _string_to_dts
49
42
50
43
# stdlib datetime imports
51
44
from datetime import time as datetime_time
@@ -55,11 +48,14 @@ from tslibs.np_datetime cimport (check_dts_bounds,
55
48
reverse_ops,
56
49
cmp_scalar,
57
50
pandas_datetimestruct,
51
+ PANDAS_DATETIMEUNIT, PANDAS_FR_ns,
58
52
dt64_to_dtstruct, dtstruct_to_dt64,
59
53
pydatetime_to_dt64, pydate_to_dt64,
60
54
npy_datetime,
61
55
get_datetime64_unit, get_datetime64_value,
62
- get_timedelta64_value)
56
+ get_timedelta64_value,
57
+ days_per_month_table,
58
+ dayofweek, is_leapyear)
63
59
from tslibs.np_datetime import OutOfBoundsDatetime
64
60
65
61
from .tslibs.parsing import parse_datetime_string
@@ -75,9 +71,6 @@ UTC = pytz.utc
75
71
import_array()
76
72
77
73
78
- cdef int64_t NPY_NAT = util.get_nat()
79
- iNaT = NPY_NAT
80
-
81
74
from tslibs.timedeltas cimport cast_from_unit, delta_to_nanoseconds
82
75
from tslibs.timedeltas import Timedelta
83
76
from tslibs.timezones cimport (
@@ -95,8 +88,8 @@ from tslibs.conversion cimport (tz_convert_single, _TSObject,
95
88
from tslibs.conversion import (tz_localize_to_utc,
96
89
tz_convert_single, date_normalize)
97
90
98
- from tslibs.nattype import NaT, nat_strings
99
- from tslibs.nattype cimport _checknull_with_nat
91
+ from tslibs.nattype import NaT, nat_strings, iNaT
92
+ from tslibs.nattype cimport _checknull_with_nat, NPY_NAT
100
93
101
94
102
95
cdef inline object create_timestamp_from_ts(
0 commit comments