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

« back to all changes in this revision

Viewing changes to pytz/zoneinfo/Singapore.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 Singapore.'''
 
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 Singapore(DstTzInfo):
 
7
    '''Singapore timezone definition. See datetime.tzinfo for details'''
 
8
 
 
9
    _zone = 'Singapore'
 
10
 
 
11
    _utc_transition_times = [
 
12
d(1,1,1,0,0,0),
 
13
d(1905,5,31,17,4,35),
 
14
d(1932,12,31,17,0,0),
 
15
d(1935,12,31,16,40,0),
 
16
d(1941,8,31,16,40,0),
 
17
d(1942,2,15,16,30,0),
 
18
d(1945,9,11,15,0,0),
 
19
d(1965,8,8,16,30,0),
 
20
d(1981,12,31,16,30,0),
 
21
        ]
 
22
 
 
23
    _transition_info = [
 
24
i(24900,0,'SMT'),
 
25
i(25200,0,'MALT'),
 
26
i(26400,1200,'MALST'),
 
27
i(26400,0,'MALT'),
 
28
i(27000,0,'MALT'),
 
29
i(32400,0,'JST'),
 
30
i(27000,0,'MALT'),
 
31
i(27000,0,'SGT'),
 
32
i(28800,0,'SGT'),
 
33
        ]
 
34
 
 
35
Singapore = Singapore()
 
36