Skip to content

Kirby 6.0.1

$date->hour()

Gets or sets the hour value

$date->hour(int|null $hour = null): int<0, 23>

Parameters

Name Type Default
$hour intornull null

Return type

int<0, 23>

Parent class

Kirby\Toolkit\Date