Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.11/site-packages/icalendar/timezone/__init__.py: 78%

Shortcuts on this page

r m x   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

9 statements  

1"""This package contains all functionality for timezones.""" 

2 

3from .tzid import tzid_from_dt, tzid_from_tzinfo, tzids_from_tzinfo 

4from .tzp import TZP 

5 

6tzp = TZP() 

7 

8 

9def use_pytz(): 

10 """Use pytz as the implementation that looks up and creates timezones.""" 

11 tzp.use_pytz() 

12 

13 

14def use_zoneinfo(): 

15 """Use zoneinfo as the implementation that looks up and creates timezones.""" 

16 tzp.use_zoneinfo() 

17 

18 

19__all__ = [ 

20 "TZP", 

21 "tzp", 

22 "use_pytz", 

23 "use_zoneinfo", 

24 "tzid_from_tzinfo", 

25 "tzid_from_dt", 

26 "tzids_from_tzinfo", 

27]