/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 784 elif info.ampm(l[i]) is not None: 785 value = info.ampm(l[i]) 786 val_is_ampm = self._ampm_valid(res.hour, res.ampm, fuzzy) 790 res.ampm = value 985 if idx + 2 < len_l and info.ampm(tokens[idx + 2]) is not None: 988 res.hour = self._adjust_ampm(hour, info.ampm(tokens[idx + 2])) 995 elif info.ampm(tokens[idx + 1]) is not None and (0 <= value < 24): 998 res.hour = self._adjust_ampm(hour, info.ampm(tokens[idx + 1])) 1067 def _ampm_valid(self, hour, ampm, fuzzy): argument [all …]
|
/external/libchrome/base/i18n/ |
D | time_formatting.cc | 113 AmPmClockType ampm) { in TimeFormatTimeOfDayWithHourClockType() argument 117 if (default_type == type && (type == k24HourClock || ampm == kKeepAmPm)) { in TimeFormatTimeOfDayWithHourClockType() 124 if (ampm == kKeepAmPm) { in TimeFormatTimeOfDayWithHourClockType()
|
D | time_formatting.h | 68 AmPmClockType ampm);
|
/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 | 400 ampm = found_dict.get('p', '').lower() 402 if ampm in ('', locale_time.am_pm[0]): 408 elif ampm == locale_time.am_pm[1]:
|
/external/cldr/tools/java/org/unicode/cldr/util/ |
D | LogicalGrouping.java | 51 private static final ImmutableSet<String> ampm = ImmutableSet.of("am", "pm"); field in LogicalGrouping 282 if (ampm.contains(dayPeriodType)) { in addPaths() 283 for (String s : ampm) { in addPaths()
|
/external/rust/crates/chrono/src/format/ |
D | parse.rs | 370 let ampm = match (s.as_bytes()[0] | 32, s.as_bytes()[1] | 32) { in parse_internal() localVariable 375 parsed.set_ampm(ampm).map_err(|e| (s, e))?; in parse_internal()
|