Mecha CMS

Date and time.

$date->hour()

Get hour.

2.2.0
$date->hour($type = null);

Example:

$date = new Date('2019-09-18 16:01:19');

$A = $date->hour;
$B = $date->hour(12);

Result:

$A = '16';
$B = '04';