Searched refs:format_timedelta (Results 1 – 4 of 4) sorted by relevance
/external/chromium-trace/catapult/third_party/webapp2/docs/api/webapp2_extras/ |
D | i18n.rst | 31 format_time, format_timedelta, format_number, format_decimal, 48 .. autofunction:: format_timedelta
|
/external/chromium-trace/catapult/third_party/webapp2/tests/ |
D | extras_i18n_test.py | 201 self.assertEqual(i18n.format_timedelta(datetime.timedelta(weeks=12)), u'3 mths') 204 self.assertEqual(i18n.format_timedelta(datetime.timedelta(seconds=1)), u'1 s') 206 … self.assertEqual(i18n.format_timedelta(datetime.timedelta(hours=3), granularity='day'), u'1 day') 207 … self.assertEqual(i18n.format_timedelta(datetime.timedelta(hours=23), threshold=0.9), u'1 day') 209 … self.assertEqual(i18n.format_timedelta(datetime.timedelta(hours=23), threshold=1.1), u'23 hrs') 210 …self.assertEqual(i18n.format_timedelta(datetime.datetime.now() - datetime.timedelta(days=5)), u'5 …
|
/external/chromium-trace/catapult/third_party/webapp2/webapp2_extras/ |
D | i18n.py | 435 def format_timedelta(self, datetime_or_timedelta, granularity='second', member in I18n 458 return dates.format_timedelta(datetime_or_timedelta, granularity, 746 def format_timedelta(datetime_or_timedelta, granularity='second', function 749 return get_i18n().format_timedelta(datetime_or_timedelta,
|
D | jinja2.py | 142 'format_timedelta': i18n.format_timedelta,
|