Home
last modified time | relevance | path

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

/third_party/python/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):
/third_party/python/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]:
/third_party/glib/glib/
Dgdatetime.c2951 const gchar *ampm; in format_ampm() local
2954 ampm = GET_AMPM (datetime); in format_ampm()
2956 if (!ampm || ampm[0] == '\0') in format_ampm()
2957 ampm = get_fallback_ampm (g_date_time_get_hour (datetime)); in format_ampm()
2962 ampm = tmp = g_locale_to_utf8 (ampm, -1, NULL, NULL, NULL); in format_ampm()
2967 ampm_dup = g_utf8_strup (ampm, -1); in format_ampm()
2969 ampm_dup = g_utf8_strdown (ampm, -1); in format_ampm()