JHtmlDate
Extended Utility class for handling date display.
abstract
package |
Joomla.Platform |
---|---|
subpackage |
HTML |
since |
11.3 |
Methods
relative
Function to convert a static time into a relative measurement
relative(string $date, string $unit = null, string $time = null) : string
static
since |
11.3 |
---|
Arguments
- $date
string
The date to convert- $unit
string
The optional unit of measurement to return if the value of the diff is greater than one- $time
string
An optional time to compare to, defaults to now
Response
string
The converted time string