aboutsummaryrefslogtreecommitdiffstats
path: root/src/3rdparty/python/lib/python3.9/site-packages/mac_alias/utils.py
blob: 3bf45155cae21113dfe1f5f44e74480831be7289 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import datetime

ZERO = datetime.timedelta(0)


class UTC(datetime.tzinfo):
    def utcoffset(self, dt):
        return ZERO

    def dst(self, dt):
        return ZERO

    def tzname(self, dt):
        return "UTC"


utc = UTC()
mac_epoch = datetime.datetime(1904, 1, 1, 0, 0, 0, 0, utc)
unix_epoch = datetime.datetime(1970, 1, 1, 0, 0, 0, 0, utc)
osx_epoch = datetime.datetime(2001, 1, 1, 0, 0, 0, 0, utc)