blob: 890351ae9f153aaad0fc748622c19199fcc55064 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
from .reader import Reader
from .timezone import Timezone
def read(name, extend=True): # type: (str, bool) -> Timezone
"""
Read the zoneinfo structure for a given timezone name.
"""
return Reader(extend=extend).read_for(name)
def read_file(path, extend=True): # type: (str, bool) -> Timezone
"""
Read the zoneinfo structure for a given path.
"""
return Reader(extend=extend).read(path)
|