Date
Extended Utility class for handling date display.
abstract
since |
2.5 |
---|---|
package |
Joomla CMS |
Methods
relative
Function to convert a static time into a relative measurement
relative( date, unit = null, time = null, format = null) :
static
since |
2.5 |
---|
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- format
string
An optional format for the HTMLHelper::date output
Response
string
The converted time string