turning Filter::formatHumanReadableTime() test case into property based one, clarifying the allowed units

This commit is contained in:
El RIDO
2017-02-26 12:47:54 +01:00
parent e41f0a7561
commit 79dafd5af4
3 changed files with 47 additions and 13 deletions

View File

@@ -39,7 +39,9 @@ class Filter
/**
* format a given time string into a human readable label (localized)
*
* accepts times in the format "[integer][time unit]"
* accepts times in the format "[integer][time unit]", valid time units are:
* sec, second, seconds, min, minute, minutes, hour, hours, day, days, week,
* weeks, month, months, year, years
*
* @access public
* @static