[wp-trac] [WordPress Trac] #9272: Expand human_time_diff()'s abilities
WordPress Trac
noreply at wordpress.org
Fri May 24 05:00:52 UTC 2013
#9272: Expand human_time_diff()'s abilities
-------------------------------------------------+-------------------------
Reporter: Viper007Bond | Owner:
Type: enhancement | Viper007Bond
Priority: normal | Status: new
Component: Date/Time | Milestone: 3.6
Severity: normal | Version: 2.8
Keywords: has-patch needs-testing rtl- | Resolution:
feedback westi-likes |
-------------------------------------------------+-------------------------
Comment (by SergeyBiryukov):
Replying to [comment:44 nacin]:
> I'd like to add weeks, months, years, using the simple approach from
westi.
Done in [attachment:9272.3.patch].
Also changed the conditions a bit. Currently, when the difference is
exactly one hour, the function returns "60 mins". With the patch, it
returns "1 hour".
--
Ticket URL: <http://core.trac.wordpress.org/ticket/9272#comment:45>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list