Date

Extended Utility class for handling date display.

abstract
since

2.5

package

Application

Methods

relative

Function to convert a static time into a relative measurement

relative(string date, string unit = null, string time = null, string format = null) : string
static
since

2.5

Arguments

date

stringThe date to convert

unit

stringThe optional unit of measurement to return if the value of the diff is greater than one

time

stringAn optional time to compare to, defaults to now

format

stringAn optional format for the HTMLHelper::date output

Response

stringThe converted time string