@@ -34,7 +34,7 @@ from lib cimport is_null_datetimelike, is_period
34
34
from pandas._libs import tslib, lib
35
35
from pandas._libs.tslib import (Timedelta, Timestamp, iNaT,
36
36
NaT)
37
- from tslibs.timezones cimport _is_utc, _is_tzlocal, _get_utcoffset
37
+ from tslibs.timezones cimport is_utc, is_tzlocal, get_utcoffset
38
38
from tslib cimport (
39
39
maybe_get_tz,
40
40
_get_dst_info,
@@ -533,23 +533,23 @@ cdef _reso_local(ndarray[int64_t] stamps, object tz):
533
533
ndarray[int64_t] trans, deltas, pos
534
534
pandas_datetimestruct dts
535
535
536
- if _is_utc (tz):
536
+ if is_utc (tz):
537
537
for i in range (n):
538
538
if stamps[i] == NPY_NAT:
539
539
continue
540
540
pandas_datetime_to_datetimestruct(stamps[i], PANDAS_FR_ns, & dts)
541
541
curr_reso = _reso_stamp(& dts)
542
542
if curr_reso < reso:
543
543
reso = curr_reso
544
- elif _is_tzlocal (tz):
544
+ elif is_tzlocal (tz):
545
545
for i in range (n):
546
546
if stamps[i] == NPY_NAT:
547
547
continue
548
548
pandas_datetime_to_datetimestruct(stamps[i], PANDAS_FR_ns,
549
549
& dts)
550
550
dt = datetime(dts.year, dts.month, dts.day, dts.hour,
551
551
dts.min, dts.sec, dts.us, tz)
552
- delta = int (_get_utcoffset (tz, dt).total_seconds()) * 1000000000
552
+ delta = int (get_utcoffset (tz, dt).total_seconds()) * 1000000000
553
553
pandas_datetime_to_datetimestruct(stamps[i] + delta,
554
554
PANDAS_FR_ns, & dts)
555
555
curr_reso = _reso_stamp(& dts)
@@ -597,7 +597,7 @@ cdef ndarray[int64_t] localize_dt64arr_to_period(ndarray[int64_t] stamps,
597
597
ndarray[int64_t] trans, deltas, pos
598
598
pandas_datetimestruct dts
599
599
600
- if _is_utc (tz):
600
+ if is_utc (tz):
601
601
for i in range (n):
602
602
if stamps[i] == NPY_NAT:
603
603
result[i] = NPY_NAT
@@ -607,7 +607,7 @@ cdef ndarray[int64_t] localize_dt64arr_to_period(ndarray[int64_t] stamps,
607
607
dts.hour, dts.min, dts.sec,
608
608
dts.us, dts.ps, freq)
609
609
610
- elif _is_tzlocal (tz):
610
+ elif is_tzlocal (tz):
611
611
for i in range (n):
612
612
if stamps[i] == NPY_NAT:
613
613
result[i] = NPY_NAT
@@ -616,7 +616,7 @@ cdef ndarray[int64_t] localize_dt64arr_to_period(ndarray[int64_t] stamps,
616
616
& dts)
617
617
dt = datetime(dts.year, dts.month, dts.day, dts.hour,
618
618
dts.min, dts.sec, dts.us, tz)
619
- delta = int (_get_utcoffset (tz, dt).total_seconds()) * 1000000000
619
+ delta = int (get_utcoffset (tz, dt).total_seconds()) * 1000000000
620
620
pandas_datetime_to_datetimestruct(stamps[i] + delta,
621
621
PANDAS_FR_ns, & dts)
622
622
result[i] = get_period_ordinal(dts.year, dts.month, dts.day,
0 commit comments