DateTime.getHour

Retrieves the hour of the day represented by @datetime

Return: the hour of the day

class DateTime
int
getHour
()

Meta

Since

2.26