parameters: (self, locale_time=None)
docstring: Create keys/values.
  
          Order of execution is important for dependency reasons.
docstring_summary: Create keys/values.
docstring_tokens: Create keys / values .
function: def __init__(self, locale_time=None):
          """Create keys/values.
  
          Order of execution is important for dependency reasons.
  
          """
          if locale_time:
              self.locale_time = locale_time
          else:
              self.locale_time = LocaleTime()
          base = super()
          base.__init__({
              # The " \d" part of the regex is to make %c from ANSI C work
              'd': r"(?P<d>3[0-1]|[1-2]\d|0[1-9]|[1-9]| [1-9])",
              'f': r"(?P<f>[0-9]{1,6})",
              'H': r"(?P<H>2[0-3]|[0-1]\d|\d)",
              'I': r"(?P<I>1[0-2]|0[1-9]|[1-9])",
              'G': r"(?P<G>\d\d\d\d)",
              'j': r"(?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': r"(?P<m>1[0-2]|0[1-9]|[1-9])",
              'M': r"(?P<M>[0-5]\d|\d)",
              'S': r"(?P<S>6[0-1]|[0-5]\d|\d)",
              'U': r"(?P<U>5[0-3]|[0-4]\d|\d)",
              'w': r"(?P<w>[0-6])",
              'u': r"(?P<u>[1-7])",
              'V': r"(?P<V>5[0-3]|0[1-9]|[1-4]\d|\d)",
              # W is set below by using 'U'
              'y': r"(?P<y>\d\d)",
              #XXX: Does 'Y' need to worry about having less or more than
              #     4 digits?
              'Y': r"(?P<Y>\d\d\d\d)",
              'z': r"(?P<z>[+-]\d\d:?[0-5]\d(:?[0-5]\d(\.\d{1,6})?)?|Z)",
              '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))
function_tokens: def __init__ ( self , locale_time = None ) : if locale_time : self . locale_time = locale_time else : self . locale_time = LocaleTime ( ) base = super ( ) base . __init__ ( { # The " \d" part of the regex is to make %c from ANSI C work 'd' : r"(?P<d>3[0-1]|[1-2]\d|0[1-9]|[1-9]| [1-9])" , 'f' : r"(?P<f>[0-9]{1,6})" , 'H' : r"(?P<H>2[0-3]|[0-1]\d|\d)" , 'I' : r"(?P<I>1[0-2]|0[1-9]|[1-9])" , 'G' : r"(?P<G>\d\d\d\d)" , 'j' : r"(?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' : r"(?P<m>1[0-2]|0[1-9]|[1-9])" , 'M' : r"(?P<M>[0-5]\d|\d)" , 'S' : r"(?P<S>6[0-1]|[0-5]\d|\d)" , 'U' : r"(?P<U>5[0-3]|[0-4]\d|\d)" , 'w' : r"(?P<w>[0-6])" , 'u' : r"(?P<u>[1-7])" , 'V' : r"(?P<V>5[0-3]|0[1-9]|[1-4]\d|\d)" , # W is set below by using 'U' 'y' : r"(?P<y>\d\d)" , #XXX: Does 'Y' need to worry about having less or more than #     4 digits? 'Y' : r"(?P<Y>\d\d\d\d)" , 'z' : r"(?P<z>[+-]\d\d:?[0-5]\d(:?[0-5]\d(\.\d{1,6})?)?|Z)" , '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 ) )