summaryrefslogtreecommitdiffstats
path: root/pendulum/tz/zoneinfo/__init__.py
blob: c1833650dcf17b7f1bafb33d136ed0d55ea4c336 (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)