diff doc/dates.txt @ 395:b4d207b1522d

The `format_timedelta` function now returns, for example, ?1 day? instead of ?0 days? if the granularity is `day` and the delta is less than a day but greater than zero.
author cmlenz
date Tue, 15 Jul 2008 16:02:17 +0000
parents 0f7f4226f765
children
line wrap: on
line diff
--- a/doc/dates.txt
+++ b/doc/dates.txt
@@ -234,7 +234,7 @@
     >>> format_timedelta(delta, threshold=1.2, locale='en_US')
     u'6 days'
     >>> format_timedelta(delta, granularity='month', locale='en_US')
-    u'0 months'
+    u'1 month'
 
 
 Time-zone Support
Copyright (C) 2012-2017 Edgewall Software