@@ -34,7 +34,7 @@ from lib cimport is_null_datetimelike, is_period
3434from  pandas._libs import  tslib, lib
3535from  pandas._libs.tslib import  (Timedelta, Timestamp, iNaT,
3636 NaT)
37- from  tslibs.timezones cimport _is_utc, _is_tzlocal, _get_utcoffset 
37+ from  tslibs.timezones cimport is_utc, is_tzlocal, get_utcoffset 
3838from  tslib cimport (
3939 maybe_get_tz,
4040 _get_dst_info,
@@ -533,23 +533,23 @@ cdef _reso_local(ndarray[int64_t] stamps, object tz):
533533 ndarray[int64_t] trans, deltas, pos
534534 pandas_datetimestruct dts
535535
536-  if  _is_utc (tz):
536+  if  is_utc (tz):
537537 for  i in  range (n):
538538 if  stamps[i] ==  NPY_NAT:
539539 continue 
540540 pandas_datetime_to_datetimestruct(stamps[i], PANDAS_FR_ns, & dts)
541541 curr_reso =  _reso_stamp(& dts)
542542 if  curr_reso <  reso:
543543 reso =  curr_reso
544-  elif  _is_tzlocal (tz):
544+  elif  is_tzlocal (tz):
545545 for  i in  range (n):
546546 if  stamps[i] ==  NPY_NAT:
547547 continue 
548548 pandas_datetime_to_datetimestruct(stamps[i], PANDAS_FR_ns,
549549 & dts)
550550 dt =  datetime(dts.year, dts.month, dts.day, dts.hour,
551551 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 
553553 pandas_datetime_to_datetimestruct(stamps[i] +  delta,
554554 PANDAS_FR_ns, & dts)
555555 curr_reso =  _reso_stamp(& dts)
@@ -597,7 +597,7 @@ cdef ndarray[int64_t] localize_dt64arr_to_period(ndarray[int64_t] stamps,
597597 ndarray[int64_t] trans, deltas, pos
598598 pandas_datetimestruct dts
599599
600-  if  _is_utc (tz):
600+  if  is_utc (tz):
601601 for  i in  range (n):
602602 if  stamps[i] ==  NPY_NAT:
603603 result[i] =  NPY_NAT
@@ -607,7 +607,7 @@ cdef ndarray[int64_t] localize_dt64arr_to_period(ndarray[int64_t] stamps,
607607 dts.hour, dts.min, dts.sec,
608608 dts.us, dts.ps, freq)
609609
610-  elif  _is_tzlocal (tz):
610+  elif  is_tzlocal (tz):
611611 for  i in  range (n):
612612 if  stamps[i] ==  NPY_NAT:
613613 result[i] =  NPY_NAT
@@ -616,7 +616,7 @@ cdef ndarray[int64_t] localize_dt64arr_to_period(ndarray[int64_t] stamps,
616616 & dts)
617617 dt =  datetime(dts.year, dts.month, dts.day, dts.hour,
618618 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 
620620 pandas_datetime_to_datetimestruct(stamps[i] +  delta,
621621 PANDAS_FR_ns, & dts)
622622 result[i] =  get_period_ordinal(dts.year, dts.month, dts.day,
0 commit comments