[wp-trac] [WordPress Trac] #35655: Add seconds to human_time_diff()
WordPress Trac
noreply at wordpress.org
Fri Jan 29 07:33:30 UTC 2016
#35655: Add seconds to human_time_diff()
-----------------------------+-----------------------------
Reporter: johnjamesjacoby | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Formatting | Version:
Severity: normal | Keywords: needs-patch
Focuses: |
-----------------------------+-----------------------------
When using `human_time_diff()` any difference less than 1 minute will
appear as:
* `1 min`
* `2 mins`
Disregarding that "min" should probably be "minutes", I propose we add
support for seconds, using the `MINUTE_IN_SECONDS` constant.
This could be:
* `1 second`
* `2 seconds`
* or even `less than 1 minute`
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35655>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list