File: Johnston.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 (12 lines) | stat: -rw-r--r-- 379 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
'''tzinfo timezone information for Pacific/Johnston.'''
from pytz.tzinfo import StaticTzInfo
from pytz.tzinfo import memorized_timedelta as timedelta

class Johnston(StaticTzInfo):
    '''Pacific/Johnston timezone definition. See datetime.tzinfo for details'''
    _zone = 'Pacific/Johnston'
    _utcoffset = timedelta(seconds=-36000)
    _tzname = 'HST'

Johnston = Johnston()