mirror of
https://github.com/janeczku/calibre-web
synced 2024-11-28 20:39:59 +00:00
39 lines
773 B
Python
39 lines
773 B
Python
|
'''tzinfo timezone information for Japan.'''
|
||
|
from pytz.tzinfo import DstTzInfo
|
||
|
from pytz.tzinfo import memorized_datetime as d
|
||
|
from pytz.tzinfo import memorized_ttinfo as i
|
||
|
|
||
|
class Japan(DstTzInfo):
|
||
|
'''Japan timezone definition. See datetime.tzinfo for details'''
|
||
|
|
||
|
zone = 'Japan'
|
||
|
|
||
|
_utc_transition_times = [
|
||
|
d(1,1,1,0,0,0),
|
||
|
d(1937,12,31,15,0,0),
|
||
|
d(1948,5,1,17,0,0),
|
||
|
d(1948,9,10,16,0,0),
|
||
|
d(1949,4,2,17,0,0),
|
||
|
d(1949,9,9,16,0,0),
|
||
|
d(1950,5,6,17,0,0),
|
||
|
d(1950,9,8,16,0,0),
|
||
|
d(1951,5,5,17,0,0),
|
||
|
d(1951,9,7,16,0,0),
|
||
|
]
|
||
|
|
||
|
_transition_info = [
|
||
|
i(32400,0,'CJT'),
|
||
|
i(32400,0,'JST'),
|
||
|
i(36000,3600,'JDT'),
|
||
|
i(32400,0,'JST'),
|
||
|
i(36000,3600,'JDT'),
|
||
|
i(32400,0,'JST'),
|
||
|
i(36000,3600,'JDT'),
|
||
|
i(32400,0,'JST'),
|
||
|
i(36000,3600,'JDT'),
|
||
|
i(32400,0,'JST'),
|
||
|
]
|
||
|
|
||
|
Japan = Japan()
|
||
|
|