Home
last modified time | relevance | path

Searched refs:format_datetime (Results 1 – 4 of 4) sorted by relevance

/external/chromium-trace/catapult/third_party/webapp2/tests/
Dextras_i18n_test.py126 self.assertEqual(i18n.format_datetime(value, format='short'), u'11/10/09 4:36 PM')
127 self.assertEqual(i18n.format_datetime(value, format='medium'), u'Nov 10, 2009 4:36:05 PM')
128 …self.assertEqual(i18n.format_datetime(value, format='long'), u'November 10, 2009 4:36:05 PM +0000')
130 …self.assertEqual(i18n.format_datetime(value, format='full'), u'Tuesday, November 10, 2009 4:36:05 …
133 self.assertEqual(i18n.format_datetime(value, format='short'), u'11/10/09 10:36 AM')
137 self.assertEqual(i18n.format_datetime(value), u'Nov 10, 2009 4:36:05 PM')
143 self.assertEqual(i18n.format_datetime(value, format='short'), u'10/11/09 16:36')
144 self.assertEqual(i18n.format_datetime(value, format='medium'), u'10/11/2009 16:36:05')
146 …self.assertEqual(i18n.format_datetime(value, format='long'), u'10 de novembro de 2009 16h36min05s …
148 …self.assertEqual(i18n.format_datetime(value, format='full'), u'ter\xe7a-feira, 10 de novembro de 2…
[all …]
/external/chromium-trace/catapult/third_party/webapp2/docs/api/webapp2_extras/
Di18n.rst30 to_local_timezone, to_utc, format_date, format_datetime,
46 .. autofunction:: format_datetime
/external/chromium-trace/catapult/third_party/webapp2/webapp2_extras/
Di18n.py376 def format_datetime(self, datetime=None, format=None, rebase=True): member in I18n
403 return dates.format_datetime(datetime, format, locale=self.locale,
736 def format_datetime(datetime=None, format=None, rebase=True): function
738 return get_i18n().format_datetime(datetime, format, rebase)
Djinja2.py141 'format_datetime': i18n.format_datetime,