timezones.pxd 487 B

1234567891011121314151617181920212223
  1. from cpython.datetime cimport (
  2. datetime,
  3. timedelta,
  4. tzinfo,
  5. )
  6. cdef tzinfo utc_stdlib
  7. cpdef bint is_utc(tzinfo tz)
  8. cdef bint is_tzlocal(tzinfo tz)
  9. cdef bint is_zoneinfo(tzinfo tz)
  10. cdef bint treat_tz_as_pytz(tzinfo tz)
  11. cpdef bint tz_compare(tzinfo start, tzinfo end)
  12. cpdef object get_timezone(tzinfo tz)
  13. cpdef tzinfo maybe_get_tz(object tz)
  14. cdef timedelta get_utcoffset(tzinfo tz, datetime obj)
  15. cpdef bint is_fixed_offset(tzinfo tz)
  16. cdef object get_dst_info(tzinfo tz)