Home
last modified time | relevance | path

Searched refs:locale_time (Results 1 – 4 of 4) sorted by relevance

/external/python/cpython2/Lib/
D_strptime.py183 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
[all …]
/external/python/cpython3/Lib/
D_strptime.py182 def __init__(self, locale_time=None): argument
188 if locale_time:
189 self.locale_time = locale_time
191 self.locale_time = LocaleTime()
214 'A': self.__seqToRE(self.locale_time.f_weekday, 'A'),
215 'a': self.__seqToRE(self.locale_time.a_weekday, 'a'),
216 'B': self.__seqToRE(self.locale_time.f_month[1:], 'B'),
217 'b': self.__seqToRE(self.locale_time.a_month[1:], 'b'),
218 'p': self.__seqToRE(self.locale_time.am_pm, 'p'),
219 'Z': self.__seqToRE((tz for tz_names in self.locale_time.timezone
[all …]
/external/python/cpython2/Lib/test/
Dtest_strptime.py115 self.locale_time = _strptime.LocaleTime()
120 self.assertTrue(pattern_string.find(self.locale_time.a_weekday[2]) != -1,
123 self.assertTrue(pattern_string.find(self.locale_time.f_weekday[4]) != -1,
140 found = self.time_re.compile(r"%A").match(self.locale_time.f_weekday[6])
141 self.assertTrue(found and found.group('A') == self.locale_time.f_weekday[6],
144 found = compiled.match("%s %s" % (self.locale_time.a_weekday[4],
145 self.locale_time.a_month[4]))
148 (compiled.pattern, "%s %s" % (self.locale_time.a_weekday[4],
149 self.locale_time.a_month[4])))
150 self.assertTrue(found.group('a') == self.locale_time.a_weekday[4] and
[all …]
/external/python/cpython3/Lib/test/
Dtest_strptime.py115 self.locale_time = _strptime.LocaleTime()
120 self.assertTrue(pattern_string.find(self.locale_time.a_weekday[2]) != -1,
123 self.assertTrue(pattern_string.find(self.locale_time.f_weekday[4]) != -1,
140 found = self.time_re.compile(r"%A").match(self.locale_time.f_weekday[6])
141 self.assertTrue(found and found.group('A') == self.locale_time.f_weekday[6],
144 found = compiled.match("%s %s" % (self.locale_time.a_weekday[4],
145 self.locale_time.a_month[4]))
148 (compiled.pattern, "%s %s" % (self.locale_time.a_weekday[4],
149 self.locale_time.a_month[4])))
150 self.assertTrue(found.group('a') == self.locale_time.a_weekday[4] and
[all …]