Skip to content

Kirby 4.4.1

$date->hour()

Gets or sets the hour value

$date->hour(?int $hour = null): int

Parameters

Name Type Default
$hour int|null null

Return type

int

Parent class

Kirby\Toolkit\Date