Microsoft SDK for Java

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

© 1999 Microsoft Corporation. All rights reserved. Terms of use.