Mecha CMS

Date and time.

$date->__construct()

Create a date instance.

2.0.02.2.0
$date->__construct(string $date = null);

Example:

$A = new Date(1568800322);
$B = new Date('1568800322');
$C = new Date('2019-09-18 16:52:02');
$D = new Date('2019-09-18-16-52-02');
$E = new Date;