class RelativeDateViewHelper extends AbstractViewHelper (View source)

Renders a DateTime formatted relative to the current date

Methods

void
initializeArguments()

No description

string
render()

Renders a DateTime formatted relative to the current date.

Details

void initializeArguments()

No description

Return Value

void

Exceptions

Exception

string render()

Renders a DateTime formatted relative to the current date.

Shows the time if the date is the current date. Shows the month and date if the date is the current year. Shows the year/month/date if the date is not the current year.

Return Value

string

an html tag

Exceptions

InvalidArgumentException
Exception