DateTime.getHour

Retrieves the hour of the day represented by datetime Since 2.26

class DateTime
int
getHour
()

Return Value

Type: int

the hour of the day

Meta