How to use the pytz.tzinfo.DstTzInfo function in pytz

To help you get started, we’ve selected a few pytz examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github rfletcher / plex-mlb / bundle / Contents / Libraries / pytz / zoneinfo / America / Costa_Rica.py View on Github external
'''tzinfo timezone information for America/Costa_Rica.'''
from pytz.tzinfo import DstTzInfo
from pytz.tzinfo import memorized_datetime as d
from pytz.tzinfo import memorized_ttinfo as i

class Costa_Rica(DstTzInfo):
    '''America/Costa_Rica timezone definition. See datetime.tzinfo for details'''

    zone = 'America/Costa_Rica'

    _utc_transition_times = [
d(1,1,1,0,0,0),
d(1921,1,15,5,36,20),
d(1979,2,25,6,0,0),
d(1979,6,3,5,0,0),
d(1980,2,24,6,0,0),
d(1980,6,1,5,0,0),
d(1991,1,19,6,0,0),
d(1991,7,1,5,0,0),
d(1992,1,18,6,0,0),
d(1992,3,15,5,0,0),
        ]
github rfletcher / plex-mlb / bundle / Contents / Libraries / pytz / zoneinfo / Asia / Dubai.py View on Github external
'''tzinfo timezone information for Asia/Dubai.'''
from pytz.tzinfo import DstTzInfo
from pytz.tzinfo import memorized_datetime as d
from pytz.tzinfo import memorized_ttinfo as i

class Dubai(DstTzInfo):
    '''Asia/Dubai timezone definition. See datetime.tzinfo for details'''

    zone = 'Asia/Dubai'

    _utc_transition_times = [
d(1,1,1,0,0,0),
d(1919,12,31,20,18,48),
        ]

    _transition_info = [
i(13260,0,'LMT'),
i(14400,0,'GST'),
        ]

Dubai = Dubai()
github rfletcher / plex-mlb / bundle / Contents / Libraries / pytz / zoneinfo / Asia / Krasnoyarsk.py View on Github external
'''tzinfo timezone information for Asia/Krasnoyarsk.'''
from pytz.tzinfo import DstTzInfo
from pytz.tzinfo import memorized_datetime as d
from pytz.tzinfo import memorized_ttinfo as i

class Krasnoyarsk(DstTzInfo):
    '''Asia/Krasnoyarsk timezone definition. See datetime.tzinfo for details'''

    zone = 'Asia/Krasnoyarsk'

    _utc_transition_times = [
d(1,1,1,0,0,0),
d(1920,1,5,17,48,40),
d(1930,6,20,18,0,0),
d(1981,3,31,17,0,0),
d(1981,9,30,16,0,0),
d(1982,3,31,17,0,0),
d(1982,9,30,16,0,0),
d(1983,3,31,17,0,0),
d(1983,9,30,16,0,0),
d(1984,3,31,17,0,0),
d(1984,9,29,19,0,0),
github rfletcher / plex-mlb / bundle / Contents / Libraries / pytz / zoneinfo / Asia / Bangkok.py View on Github external
'''tzinfo timezone information for Asia/Bangkok.'''
from pytz.tzinfo import DstTzInfo
from pytz.tzinfo import memorized_datetime as d
from pytz.tzinfo import memorized_ttinfo as i

class Bangkok(DstTzInfo):
    '''Asia/Bangkok timezone definition. See datetime.tzinfo for details'''

    zone = 'Asia/Bangkok'

    _utc_transition_times = [
d(1,1,1,0,0,0),
d(1920,3,31,17,17,56),
        ]

    _transition_info = [
i(24120,0,'BMT'),
i(25200,0,'ICT'),
        ]

Bangkok = Bangkok()
github rfletcher / plex-mlb / bundle / Contents / Libraries / pytz / zoneinfo / Africa / El_Aaiun.py View on Github external
'''tzinfo timezone information for Africa/El_Aaiun.'''
from pytz.tzinfo import DstTzInfo
from pytz.tzinfo import memorized_datetime as d
from pytz.tzinfo import memorized_ttinfo as i

class El_Aaiun(DstTzInfo):
    '''Africa/El_Aaiun timezone definition. See datetime.tzinfo for details'''

    zone = 'Africa/El_Aaiun'

    _utc_transition_times = [
d(1,1,1,0,0,0),
d(1934,1,1,0,52,48),
d(1976,4,14,1,0,0),
        ]

    _transition_info = [
i(-3180,0,'LMT'),
i(-3600,0,'WAT'),
i(0,0,'WET'),
        ]
github rfletcher / plex-mlb / bundle / Contents / Libraries / pytz / zoneinfo / America / Jujuy.py View on Github external
'''tzinfo timezone information for America/Jujuy.'''
from pytz.tzinfo import DstTzInfo
from pytz.tzinfo import memorized_datetime as d
from pytz.tzinfo import memorized_ttinfo as i

class Jujuy(DstTzInfo):
    '''America/Jujuy timezone definition. See datetime.tzinfo for details'''

    zone = 'America/Jujuy'

    _utc_transition_times = [
d(1,1,1,0,0,0),
d(1920,5,1,4,16,48),
d(1930,12,1,4,0,0),
d(1931,4,1,3,0,0),
d(1931,10,15,4,0,0),
d(1932,3,1,3,0,0),
d(1932,11,1,4,0,0),
d(1933,3,1,3,0,0),
d(1933,11,1,4,0,0),
d(1934,3,1,3,0,0),
d(1934,11,1,4,0,0),
github rfletcher / plex-mlb / bundle / Contents / Libraries / pytz / zoneinfo / America / Montreal.py View on Github external
'''tzinfo timezone information for America/Montreal.'''
from pytz.tzinfo import DstTzInfo
from pytz.tzinfo import memorized_datetime as d
from pytz.tzinfo import memorized_ttinfo as i

class Montreal(DstTzInfo):
    '''America/Montreal timezone definition. See datetime.tzinfo for details'''

    zone = 'America/Montreal'

    _utc_transition_times = [
d(1,1,1,0,0,0),
d(1917,3,25,7,0,0),
d(1917,4,24,4,0,0),
d(1918,4,14,7,0,0),
d(1918,10,31,6,0,0),
d(1919,3,31,7,30,0),
d(1919,10,25,6,30,0),
d(1920,5,2,7,30,0),
d(1920,10,3,6,30,0),
d(1921,5,1,7,0,0),
d(1921,10,2,6,30,0),
github rfletcher / plex-mlb / bundle / Contents / Libraries / pytz / zoneinfo / Africa / Douala.py View on Github external
'''tzinfo timezone information for Africa/Douala.'''
from pytz.tzinfo import DstTzInfo
from pytz.tzinfo import memorized_datetime as d
from pytz.tzinfo import memorized_ttinfo as i

class Douala(DstTzInfo):
    '''Africa/Douala timezone definition. See datetime.tzinfo for details'''

    zone = 'Africa/Douala'

    _utc_transition_times = [
d(1,1,1,0,0,0),
d(1911,12,31,23,21,12),
        ]

    _transition_info = [
i(2340,0,'LMT'),
i(3600,0,'WAT'),
        ]

Douala = Douala()
github rfletcher / plex-mlb / bundle / Contents / Libraries / pytz / zoneinfo / Africa / Dar_es_Salaam.py View on Github external
'''tzinfo timezone information for Africa/Dar_es_Salaam.'''
from pytz.tzinfo import DstTzInfo
from pytz.tzinfo import memorized_datetime as d
from pytz.tzinfo import memorized_ttinfo as i

class Dar_es_Salaam(DstTzInfo):
    '''Africa/Dar_es_Salaam timezone definition. See datetime.tzinfo for details'''

    zone = 'Africa/Dar_es_Salaam'

    _utc_transition_times = [
d(1,1,1,0,0,0),
d(1930,12,31,21,22,52),
d(1947,12,31,21,0,0),
d(1960,12,31,21,15,15),
        ]

    _transition_info = [
i(9420,0,'LMT'),
i(10800,0,'EAT'),
i(9900,0,'BEAUT'),
i(10800,0,'EAT'),
github rfletcher / plex-mlb / bundle / Contents / Libraries / pytz / zoneinfo / Antarctica / South_Pole.py View on Github external
'''tzinfo timezone information for Antarctica/South_Pole.'''
from pytz.tzinfo import DstTzInfo
from pytz.tzinfo import memorized_datetime as d
from pytz.tzinfo import memorized_ttinfo as i

class South_Pole(DstTzInfo):
    '''Antarctica/South_Pole timezone definition. See datetime.tzinfo for details'''

    zone = 'Antarctica/South_Pole'

    _utc_transition_times = [
d(1,1,1,0,0,0),
d(1956,1,1,0,0,0),
d(1974,11,2,14,0,0),
d(1975,2,22,14,0,0),
d(1975,10,25,14,0,0),
d(1976,3,6,14,0,0),
d(1976,10,30,14,0,0),
d(1977,3,5,14,0,0),
d(1977,10,29,14,0,0),
d(1978,3,4,14,0,0),
d(1978,10,28,14,0,0),