'Create keys/values.
Order of execution is important for dependency reasons.'

def __init__(self, locale_time=None):

    if locale_time:
        self.locale_time = locale_time
    else:
        self.locale_time = LocaleTime()
    base = super(TimeRE, self)
    base.__init__({'d': '(?P<d>3[0-1]|[1-2]\\d|0[1-9]|[1-9]|    [1-9])', 'f': '(?P<f>[0-9]{1,6})', 'H': '(?P<H>2[0-3]|[0-1]\\d|\\d)', 'I': '(?P<I>1[0-2]|0[1-9]|[1-9])', 'j': '(?P<j>36[0-6]|3[0-5]\\d|[1-2]\\d\\d|0[1-9]\\d|00[1-9]|[1-9]\\d|0[1-9]|[1-9])', 'm': '(?P<m>1[0-2]|0[1-9]|[1-9])', 'M': '(?P<M>[0-5]\\d|\\d)', 'S': '(?P<S>6[0-1]|[0-5]\\d|\\d)', 'U': '(?P<U>5[0-3]|[0-4]\\d|\\d)', 'w': '(?P<w>[0-6])', 'y': '(?P<y>\\d\\d)', 'Y': '(?P<Y>\\d\\d\\d\\d)', 'A': self.__seqToRE(self.locale_time.f_weekday, 'A'), 'a': self.__seqToRE(self.locale_time.a_weekday, 'a'), 'B': self.__seqToRE(self.locale_time.f_month[1:], 'B'), 'b': self.__seqToRE(self.locale_time.a_month[1:], 'b'), 'p': self.__seqToRE(self.locale_time.am_pm, 'p'), 'Z': self.__seqToRE((tz for tz_names in self.locale_time.timezone for tz in tz_names), 'Z'), '%': '%'})
    base.__setitem__('W', base.__getitem__('U').replace('U', 'W'))
    base.__setitem__('c', self.pattern(self.locale_time.LC_date_time))
    base.__setitem__('x', self.pattern(self.locale_time.LC_date))
    base.__setitem__('X', self.pattern(self.locale_time.LC_time))
