DateTime.getHour
int getHour()Retrieves the hour of the day represented by datetime in the gregorian calendar. The return is in the range of 0 to 23.
Returns
the hour of the day, or -1 if none is set.
int getHour()Retrieves the hour of the day represented by datetime in the gregorian calendar. The return is in the range of 0 to 23.