diff options
| author | Collin Anderson <collin@onetencommunications.com> | 2014-09-05 16:55:24 -0700 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-09-06 08:00:29 -0400 |
| commit | d19291e9ad58107825581bd2297398cf8d824fba (patch) | |
| tree | b3991cac05bbb41fd43b160113c2fc6369363fdf /docs | |
| parent | 2b4817108122fc1098541f34a50fcab74bc1b94e (diff) | |
[1.7.x] Fixed #23340 -- Corrected naturaltime docs to match behavior.
Thanks zachborboa for the report and blackguest for the patch.
Backport of 7353e26d5d and 0a2bc6e6bd from master
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/contrib/humanize.txt | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/docs/ref/contrib/humanize.txt b/docs/ref/contrib/humanize.txt index aca6ed990d..8accfe326e 100644 --- a/docs/ref/contrib/humanize.txt +++ b/docs/ref/contrib/humanize.txt @@ -111,13 +111,18 @@ Examples (when 'now' is 17 Feb 2007 16:30:00): * ``17 Feb 2007 16:29:31`` becomes ``29 seconds ago``. * ``17 Feb 2007 16:29:00`` becomes ``a minute ago``. * ``17 Feb 2007 16:25:35`` becomes ``4 minutes ago``. -* ``17 Feb 2007 15:30:29`` becomes ``an hour ago``. +* ``17 Feb 2007 15:30:29`` becomes ``59 minutes ago``. +* ``17 Feb 2007 15:30:01`` becomes ``59 minutes ago``. +* ``17 Feb 2007 15:30:00`` becomes ``an hour ago``. * ``17 Feb 2007 13:31:29`` becomes ``2 hours ago``. -* ``16 Feb 2007 13:31:29`` becomes ``1 day, 3 hours ago``. -* ``17 Feb 2007 16:30:30`` becomes ``29 seconds from now``. +* ``16 Feb 2007 13:31:29`` becomes ``1 day, 2 hours ago``. +* ``16 Feb 2007 13:30:01`` becomes ``1 day, 2 hours ago``. +* ``16 Feb 2007 13:30:00`` becomes ``1 day, 3 hours ago``. +* ``17 Feb 2007 16:30:30`` becomes ``30 seconds from now``. +* ``17 Feb 2007 16:30:29`` becomes ``29 seconds from now``. * ``17 Feb 2007 16:31:00`` becomes ``a minute from now``. * ``17 Feb 2007 16:34:35`` becomes ``4 minutes from now``. -* ``17 Feb 2007 16:30:29`` becomes ``an hour from now``. +* ``17 Feb 2007 17:30:29`` becomes ``an hour from now``. * ``17 Feb 2007 18:31:29`` becomes ``2 hours from now``. * ``18 Feb 2007 16:31:29`` becomes ``1 day from now``. * ``26 Feb 2007 18:31:29`` becomes ``1 week, 2 days from now``. |
