[wp-trac] [WordPress Trac] #9272: Expand human_time_diff()'s
abilities
WordPress Trac
wp-trac at lists.automattic.com
Wed Mar 4 10:42:22 GMT 2009
#9272: Expand human_time_diff()'s abilities
--------------------------+-------------------------------------------------
Reporter: Viper007Bond | Owner: Viper007Bond
Type: enhancement | Status: new
Priority: normal | Milestone: Unassigned
Component: General | Version:
Severity: normal | Keywords: needs-patch
--------------------------+-------------------------------------------------
This is partially related to #7250.
Currently `human_time_diff()` can only do days, hours, and minutes. I
propose we expand it a bit, to at least weeks and possibly even months and
years (although that can be tricky unless PHP has a shortcut).
It should also support the ability to trim to a certain accuracy, i.e. for
a 2 year 1 month old post, minutes don't matter.
In short, I propose we integrate Time Since's functionality into the core
by expanding the current `human_time_diff()`.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/9272>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list