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.py173 def __init__(self, locale_time=None): argument
179 if locale_time:
180 self.locale_time = locale_time
182 self.locale_time = LocaleTime()
205 'A': self.__seqToRE(self.locale_time.f_weekday, 'A'),
206 'a': self.__seqToRE(self.locale_time.a_weekday, 'a'),
207 'B': self.__seqToRE(self.locale_time.f_month[1:], 'B'),
208 'b': self.__seqToRE(self.locale_time.a_month[1:], 'b'),
209 'p': self.__seqToRE(self.locale_time.am_pm, 'p'),
210 '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.py116 self.locale_time = _strptime.LocaleTime()
121 self.assertTrue(pattern_string.find(self.locale_time.a_weekday[2]) != -1,
124 self.assertTrue(pattern_string.find(self.locale_time.f_weekday[4]) != -1,
142 found = self.time_re.compile(r"%A").match(self.locale_time.f_weekday[6])
143 self.assertTrue(found and found.group('A') == self.locale_time.f_weekday[6],
146 found = compiled.match("%s %s" % (self.locale_time.a_weekday[4],
147 self.locale_time.a_month[4]))
150 (compiled.pattern, "%s %s" % (self.locale_time.a_weekday[4],
151 self.locale_time.a_month[4])))
152 self.assertTrue(found.group('a') == self.locale_time.a_weekday[4] and
[all …]