Date.getHours

Date.getHours

Class Overview | Class Members | This Package | All Packages

Syntax
public int getHours()
Returns
the hour represented by this date.
Description
Note: getHours() is deprecated.

Returns the hour represented by this date. The value returned is between 0 and 23, where 0 represents midnight.

See Also
Calendar