File: Perth.py

package info (click to toggle)
python-tz 2005a-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 3,364 kB
  • ctags: 2,903
  • sloc: python: 84,245; makefile: 41
file content (44 lines) | stat: -rw-r--r-- 936 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
'''tzinfo timezone information for Australia/Perth.'''
from pytz.tzinfo import DstTzInfo
from pytz.tzinfo import memorized_datetime as d
from pytz.tzinfo import memorized_ttinfo as i

class Perth(DstTzInfo):
    '''Australia/Perth timezone definition. See datetime.tzinfo for details'''

    _zone = 'Australia/Perth'

    _utc_transition_times = [
d(1,1,1,0,0,0),
d(1916,12,31,16,1,0),
d(1917,3,24,17,0,0),
d(1941,12,31,18,0,0),
d(1942,3,28,17,0,0),
d(1942,9,26,18,0,0),
d(1943,3,27,17,0,0),
d(1974,10,26,18,0,0),
d(1975,3,1,18,0,0),
d(1983,10,29,18,0,0),
d(1984,3,3,18,0,0),
d(1991,11,16,18,0,0),
d(1992,2,29,18,0,0),
        ]

    _transition_info = [
i(28800,0,'WST'),
i(32400,3600,'WST'),
i(28800,0,'WST'),
i(32400,3600,'WST'),
i(28800,0,'WST'),
i(32400,3600,'WST'),
i(28800,0,'WST'),
i(32400,3600,'WST'),
i(28800,0,'WST'),
i(32400,3600,'WST'),
i(28800,0,'WST'),
i(32400,3600,'WST'),
i(28800,0,'WST'),
        ]

Perth = Perth()