@@ -17,16 +17,15 @@ from cpython.datetime cimport (datetime, tzinfo,
17
17
PyDateTime_CheckExact, PyDateTime_IMPORT)
18
18
PyDateTime_IMPORT
19
19
20
- from ccalendar import DAY_SECONDS, HOUR_SECONDS
20
+ from pandas._libs.tslibs. ccalendar import DAY_SECONDS, HOUR_SECONDS
21
21
22
- from np_datetime cimport (check_dts_bounds,
23
- npy_datetimestruct,
24
- pandas_datetime_to_datetimestruct, _string_to_dts,
25
- npy_datetime,
26
- dt64_to_dtstruct, dtstruct_to_dt64,
27
- get_datetime64_unit, get_datetime64_value,
28
- pydatetime_to_dt64, NPY_DATETIMEUNIT, NPY_FR_ns)
29
- from np_datetime import OutOfBoundsDatetime
22
+ from pandas._libs.tslibs.np_datetime cimport (
23
+ check_dts_bounds, npy_datetimestruct,
24
+ pandas_datetime_to_datetimestruct, _string_to_dts,
25
+ npy_datetime, dt64_to_dtstruct, dtstruct_to_dt64,
26
+ get_datetime64_unit, get_datetime64_value,
27
+ pydatetime_to_dt64, NPY_DATETIMEUNIT, NPY_FR_ns)
28
+ from pandas._libs.tslibs.np_datetime import OutOfBoundsDatetime
30
29
31
30
from pandas._libs.tslibs.util cimport (
32
31
is_string_object, is_datetime64_object, is_integer_object, is_float_object)
@@ -454,7 +453,7 @@ cdef _TSObject convert_str_to_tsobject(object ts, object tz, object unit,
454
453
obj.dts.hour, obj.dts.min, obj.dts.sec,
455
454
obj.dts.us, obj.tzinfo)
456
455
obj = convert_datetime_to_tsobject(dt, tz,
457
- nanos = obj.dts.ps / 1000 )
456
+ nanos = obj.dts.ps // 1000 )
458
457
return obj
459
458
460
459
else :
0 commit comments