DateTime.getHour

int getHour()

Retrieves the hour of the day represented by datetime

Returns

the hour of the day