$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>
Gets or sets the hour value
$date->hour(int|null $hour = null): int<0, 23>
| Name | Type | Default |
|---|---|---|
| $hour | intornull |
null
|
int<0, 23>