DateTime.getHour

Retrieves the hour of the day represented by @datetime in the gregorian calendar. The return is in the range of 0 to 23. Call gst_date_time_has_haur before, to avoid warnings.

class DateTime
int
getHour
()

Return Value

Type: int

the hour of the day

Meta