Home
last modified time | relevance | path

Searched refs:ampm (Results 1 – 11 of 11) sorted by relevance

/external/python/cpython2/Lib/test/
Dtest_strftime.py19 def escapestr(text, ampm): argument
25 new_text = new_text.replace(re.escape(ampm), ampm)
41 if now[3] < 12: self.ampm='(AM|am)'
42 else: self.ampm='(PM|pm)'
103 ('%p', self.ampm, 'AM or PM as appropriate'),
124 if re.match(escapestr(e[1], self.ampm), result):
150 ('%r', '%02d:%02d:%02d %s' % (self.clock12, now[4], now[5], self.ampm),
170 if re.match(escapestr(e[1], self.ampm), result):
/external/python/cpython3/Lib/test/
Dtest_strftime.py19 def escapestr(text, ampm): argument
25 new_text = new_text.replace(re.escape(ampm), ampm)
39 if now[3] < 12: self.ampm='(AM|am)'
40 else: self.ampm='(PM|pm)'
101 ('%p', self.ampm, 'AM or PM as appropriate'),
122 if re.match(escapestr(e[1], self.ampm), result):
148 ('%r', '%02d:%02d:%02d %s' % (self.clock12, now[4], now[5], self.ampm),
168 if re.match(escapestr(e[1], self.ampm), result):
/external/python/dateutil/dateutil/parser/
D_parser.py348 def ampm(self, name): member in parserinfo
742 elif info.ampm(l[i]) is not None:
743 value = info.ampm(l[i])
744 val_is_ampm = self._ampm_valid(res.hour, res.ampm, fuzzy)
748 res.ampm = value
943 if idx + 2 < len_l and info.ampm(tokens[idx + 2]) is not None:
946 res.hour = self._adjust_ampm(hour, info.ampm(tokens[idx + 2]))
953 elif info.ampm(tokens[idx + 1]) is not None and (0 <= value < 24):
956 res.hour = self._adjust_ampm(hour, info.ampm(tokens[idx + 1]))
1024 def _ampm_valid(self, hour, ampm, fuzzy): argument
[all …]
/external/libtextclassifier/annotator/
Dtypes.h382 AMPM ampm = AMPM::AM; member
398 int hour, int minute, int second, AMPM ampm, int zone_offset, in DateParseData()
408 this->ampm = ampm; in DateParseData()
Dtypes.cc95 stream = stream << " ampm: " << static_cast<int>(data.ampm) << "\n"; in operator <<()
/external/cldr/tools/java/org/unicode/cldr/util/
DLogicalGrouping.java40 private static final ImmutableSet<String> ampm = ImmutableSet.of("am", "pm"); field in LogicalGrouping
83 if (ampm.contains(dayPeriodType)) { in getPaths()
84 for (String s : ampm) { in getPaths()
/external/python/cpython2/Lib/
D_strptime.py378 ampm = found_dict.get('p', '').lower()
380 if ampm in ('', locale_time.am_pm[0]):
386 elif ampm == locale_time.am_pm[1]:
/external/python/cpython3/Lib/
D_strptime.py409 ampm = found_dict.get('p', '').lower()
411 if ampm in ('', locale_time.am_pm[0]):
417 elif ampm == locale_time.am_pm[1]:
/external/libtextclassifier/utils/calendar/
Dcalendar-common.h122 parse_data.ampm == DateParseData::AMPM::PM && parse_data.hour < 12) { in InterpretParseData()
124 } else if (parse_data.ampm == DateParseData::AMPM::AM && in InterpretParseData()
/external/libtextclassifier/annotator/datetime/
Dparser.cc374 interpretations->back().ampm = DateParseData::AMPM::AM; in FillInterpretations()
378 interpretations->back().ampm = DateParseData::AMPM::PM; in FillInterpretations()
Dextractor.cc97 if (!ParseAMPM(group_text, &(result->ampm))) { in Extract()