@staticmethod
def _get_periods(timezonedef):
    tz_periods = {}
    periods = timezonedef.find(('{%s}Periods' % TNS))
    for period in periods.findall(('{%s}Period' % TNS)):
        (p_year, p_type) = period.get('Id').rsplit('/', 1)[1].split('-')
        tz_periods[(int(p_year), p_type)] = dict(name=period.get('Name'), bias=xml_text_to_value(period.get('Bias'), datetime.timedelta))
    return tz_periods
@staticmethod
def _get_periods(timezonedef):
    tz_periods = {}
    periods = timezonedef.find(('{%s}Periods' % TNS))
    for period in periods.findall(('{%s}Period' % TNS)):
        (p_year, p_type) = period.get('Id').rsplit('/', 1)[1].split('-')
        tz_periods[(int(p_year), p_type)] = dict(name=period.get('Name'), bias=xml_text_to_value(period.get('Bias'), datetime.timedelta))
    return tz_periods