DateTime.getHour

Retrieves the hour of the day represented by @datetime

class DateTime
int
getHour
()

Return Value

Type: int

the hour of the day

Meta

Since

2.26