[wp-trac] [WordPress Trac] #9272: Expand human_time_diff()'s abilities

WordPress Trac wp-trac at lists.automattic.com
Sun Jan 8 22:47:41 UTC 2012


#9272: Expand human_time_diff()'s abilities
-------------------------------------------------+-------------------------
 Reporter:  Viper007Bond                         |       Owner:
     Type:  enhancement                          |  Viper007Bond
 Priority:  normal                               |      Status:  new
Component:  Date/Time                            |   Milestone:  Future
 Severity:  normal                               |  Release
 Keywords:  has-patch needs-testing rtl-         |     Version:  2.8
  feedback                                       |  Resolution:
-------------------------------------------------+-------------------------

Comment (by dd32):

 I also don't see any harm on a filter on `$units` but if added, a
 protective sort should be applied (`arsort($units, SORT_NUMERIC);`).

 It would open up to specific use-cases of using alternate durations,
 Although the only time I can see that being useful is non-jullian
 calenders.. and in those cases, the current fuzzy duration logic probably
 wouldn't be accurate enough for their use-case.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/9272#comment:31>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list