Lines Matching refs:locale_time
183 def __init__(self, locale_time=None): argument
189 if locale_time:
190 self.locale_time = locale_time
192 self.locale_time = LocaleTime()
211 'A': self.__seqToRE(self.locale_time.f_weekday, 'A'),
212 'a': self.__seqToRE(self.locale_time.a_weekday, 'a'),
213 'B': self.__seqToRE(self.locale_time.f_month[1:], 'B'),
214 'b': self.__seqToRE(self.locale_time.a_month[1:], 'b'),
215 'p': self.__seqToRE(self.locale_time.am_pm, 'p'),
216 'Z': self.__seqToRE((tz for tz_names in self.locale_time.timezone
221 base.__setitem__('c', self.pattern(self.locale_time.LC_date_time))
222 base.__setitem__('x', self.pattern(self.locale_time.LC_date))
223 base.__setitem__('X', self.pattern(self.locale_time.LC_time))
303 locale_time = _TimeRE_cache.locale_time
304 if (_getlang() != locale_time.lang or
305 time.tzname != locale_time.tzname or
306 time.daylight != locale_time.daylight):
309 locale_time = _TimeRE_cache.locale_time
369 month = locale_time.f_month.index(found_dict['B'].lower())
371 month = locale_time.a_month.index(found_dict['b'].lower())
380 if ampm in ('', locale_time.am_pm[0]):
386 elif ampm == locale_time.am_pm[1]:
402 weekday = locale_time.f_weekday.index(found_dict['A'].lower())
404 weekday = locale_time.a_weekday.index(found_dict['a'].lower())
425 for value, tz_values in enumerate(locale_time.timezone):