~ubuntu-branches/ubuntu/trusty/python-tz/trusty-updates

« back to all changes in this revision

Viewing changes to pytz/zoneinfo/MST.py

  • Committer: Bazaar Package Importer
  • Author(s): Brian Sutherland
  • Date: 2005-02-08 02:14:33 UTC
  • Revision ID: james.westby@ubuntu.com-20050208021433-t6c9teignwsm2ywo
Tags: upstream-2005a
ImportĀ upstreamĀ versionĀ 2005a

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
'''tzinfo timezone information for MST.'''
 
2
from pytz.tzinfo import DstTzInfo
 
3
from pytz.tzinfo import memorized_datetime as d
 
4
from pytz.tzinfo import memorized_ttinfo as i
 
5
 
 
6
class MST(DstTzInfo):
 
7
    '''MST timezone definition. See datetime.tzinfo for details'''
 
8
 
 
9
    _zone = 'MST'
 
10
 
 
11
    _utc_transition_times = [
 
12
d(1,1,1,0,0,0),
 
13
d(1918,3,31,9,0,0),
 
14
d(1918,10,27,8,0,0),
 
15
d(1919,3,30,9,0,0),
 
16
d(1919,10,26,8,0,0),
 
17
d(1942,2,9,9,0,0),
 
18
d(1944,1,1,6,1,0),
 
19
d(1944,4,1,7,1,0),
 
20
d(1944,10,1,6,1,0),
 
21
d(1967,4,30,9,0,0),
 
22
d(1967,10,29,8,0,0),
 
23
        ]
 
24
 
 
25
    _transition_info = [
 
26
i(-25200,0,'MST'),
 
27
i(-21600,3600,'MDT'),
 
28
i(-25200,0,'MST'),
 
29
i(-21600,3600,'MDT'),
 
30
i(-25200,0,'MST'),
 
31
i(-21600,3600,'MWT'),
 
32
i(-25200,0,'MST'),
 
33
i(-21600,3600,'MWT'),
 
34
i(-25200,0,'MST'),
 
35
i(-21600,3600,'MDT'),
 
36
i(-25200,0,'MST'),
 
37
        ]
 
38
 
 
39
MST = MST()
 
40