Mecha CMS

Date and time.

$date->hour()

Get hour.

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

Example:

$date = new Date('2019-06-25 14:25:12');

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

Result:

$A = '14';
$B = '02';