File: Swift_Current.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 (66 lines) | stat: -rw-r--r-- 1,425 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
'''tzinfo timezone information for America/Swift_Current.'''
from pytz.tzinfo import DstTzInfo
from pytz.tzinfo import memorized_datetime as d
from pytz.tzinfo import memorized_ttinfo as i

class Swift_Current(DstTzInfo):
    '''America/Swift_Current timezone definition. See datetime.tzinfo for details'''

    _zone = 'America/Swift_Current'

    _utc_transition_times = [
d(1,1,1,0,0,0),
d(1905,9,1,7,11,20),
d(1918,4,14,9,0,0),
d(1918,10,31,8,0,0),
d(1942,2,9,9,0,0),
d(1945,8,14,23,0,0),
d(1945,9,30,8,0,0),
d(1946,4,28,9,0,0),
d(1946,10,13,8,0,0),
d(1947,4,27,9,0,0),
d(1947,9,28,8,0,0),
d(1948,4,25,9,0,0),
d(1948,9,26,8,0,0),
d(1949,4,24,9,0,0),
d(1949,9,25,8,0,0),
d(1957,4,28,9,0,0),
d(1957,10,27,8,0,0),
d(1959,4,26,9,0,0),
d(1959,10,25,8,0,0),
d(1960,4,24,9,0,0),
d(1960,9,25,8,0,0),
d(1961,4,30,9,0,0),
d(1961,9,24,8,0,0),
d(1972,4,30,9,0,0),
        ]

    _transition_info = [
i(-25860,0,'LMT'),
i(-25200,0,'MST'),
i(-21600,3600,'MDT'),
i(-25200,0,'MST'),
i(-21600,3600,'MWT'),
i(-21600,3600,'MPT'),
i(-25200,0,'MST'),
i(-21600,3600,'MDT'),
i(-25200,0,'MST'),
i(-21600,3600,'MDT'),
i(-25200,0,'MST'),
i(-21600,3600,'MDT'),
i(-25200,0,'MST'),
i(-21600,3600,'MDT'),
i(-25200,0,'MST'),
i(-21600,3600,'MDT'),
i(-25200,0,'MST'),
i(-21600,3600,'MDT'),
i(-25200,0,'MST'),
i(-21600,3600,'MDT'),
i(-25200,0,'MST'),
i(-21600,3600,'MDT'),
i(-25200,0,'MST'),
i(-21600,0,'CST'),
        ]

Swift_Current = Swift_Current()