Expand human_time_diff()'s abilities
|Reported by:||Viper007Bond||Owned by:||Viper007Bond|
|Severity:||normal||Keywords:||has-patch needs-testing rtl-feedback westi-likes|
|Cc:||DJPaul, pavelevap@…, scott@…, ian_dunn@…|
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 (49)
- 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