Expand human_time_diff()'s abilities
|Reported by:||Viper007Bond||Owned by:||Viper007Bond|
|Component:||Date/Time||Keywords:||has-patch needs-testing rtl-feedback westi-likes|
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().
Change History (57)
comment:3 @Viper007Bond — 6 years ago
- Keywords has-patch needs-testing added; needs-patch removed
- Milestone changed from Unassigned to Future Release
- Version set to 2.8
- Component changed from Date/Time to i18n
- Milestone changed from Future Release to 2.8