Home
last modified time | relevance | path

Searched refs:ampm (Results 1 – 9 of 9) 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
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/
Dtime_formatting.cc113 AmPmClockType ampm) { in TimeFormatTimeOfDayWithHourClockType() argument
117 if (default_type == type && (type == k24HourClock || ampm == kKeepAmPm)) { in TimeFormatTimeOfDayWithHourClockType()
124 if (ampm == kKeepAmPm) { in TimeFormatTimeOfDayWithHourClockType()
Dtime_formatting.h68 AmPmClockType ampm);
/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.py400 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/
DLogicalGrouping.java51 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/
Dparse.rs370 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()