Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques statiques | |
static | relative ($date, $unit=null, $time=null, $format=null) |
Extended Utility class for handling date display.
Function to convert a static time into a relative measurement
string | $date | The date to convert |
string | $unit | The optional unit of measurement to return if the value of the diff is greater than one |
string | $time | An optional time to compare to, defaults to now |
string | $format | An optional format for the HTMLHelper::date output |
Références $date, $format, Text\_(), HTMLHelper\_(), null, et Text\plural().