Date · Mecha CMS

Working with date and time.

__construct()

Constructor.

__get()

Dynamic properties.

__set()

Dynamic properties.

$date->ago()

Calculate distance from the date input to the current date.

$date->extract()

Extract date formats.

$date->format()

Format a date input.

$date::get()

Get custom date format.

$date::reset()

Remove custom date format.

$date::set()

Create custom date format.

$date::zone()

Set default date time zone.