Time.getHour

Overview | Methods | Fields | This Package | All Packages

Time.getHour

Retrieves the hour of the day that this Time object represents.

Syntax

public int getHour()

Return Value

Returns an integer value that represents the hour of the day that this Time object represents.

Remarks

The number returned by the getHour method is always between 0 and 23.

See Also   getMinute, getSecond, getMillis, getTimeOfDay