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

« back to all changes in this revision

Viewing changes to pytz/zoneinfo/Africa/Johannesburg.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 Africa/Johannesburg.'''
 
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 Johannesburg(DstTzInfo):
 
7
    '''Africa/Johannesburg timezone definition. See datetime.tzinfo for details'''
 
8
 
 
9
    _zone = 'Africa/Johannesburg'
 
10
 
 
11
    _utc_transition_times = [
 
12
d(1,1,1,0,0,0),
 
13
d(1903,2,28,22,30,0),
 
14
d(1942,9,20,0,0,0),
 
15
d(1943,3,20,23,0,0),
 
16
d(1943,9,19,0,0,0),
 
17
d(1944,3,18,23,0,0),
 
18
        ]
 
19
 
 
20
    _transition_info = [
 
21
i(5400,0,'SAST'),
 
22
i(7200,0,'SAST'),
 
23
i(10800,3600,'SAST'),
 
24
i(7200,0,'SAST'),
 
25
i(10800,3600,'SAST'),
 
26
i(7200,0,'SAST'),
 
27
        ]
 
28
 
 
29
Johannesburg = Johannesburg()
 
30