/external/python/cpython2/Lib/test/ |
D | test_strftime.py | 19 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/ |
D | test_strftime.py | 19 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.py | 348 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/ |
D | types.h | 382 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()
|
D | types.cc | 95 stream = stream << " ampm: " << static_cast<int>(data.ampm) << "\n"; in operator <<()
|
/external/cldr/tools/java/org/unicode/cldr/util/ |
D | LogicalGrouping.java | 40 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.py | 378 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.py | 409 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/ |
D | calendar-common.h | 122 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/ |
D | parser.cc | 374 interpretations->back().ampm = DateParseData::AMPM::AM; in FillInterpretations() 378 interpretations->back().ampm = DateParseData::AMPM::PM; in FillInterpretations()
|
D | extractor.cc | 97 if (!ParseAMPM(group_text, &(result->ampm))) { in Extract()
|