int getHour()
_INSERT_METHOD_SIGNATURE_HERE_
Description:
| Returns | Range | Description |
|---|---|---|
| int | 0...23 | the stored hour within a new created Time object |
A new created Time object can be used to save the current time derived from the real-time clock. A new time is assigned to a Time object when the IO.getTime() method is called. Once a Time object is created, the hour value at the objects creation time will be stored into the Time object for further use. The getHour() method returns the hour as an integer value.
Example
Time saveCurrentTime = IO.getTime();
Console.println("stored hour: " + saveCurrentTime.getHour());
See also:
Copyright © demmel products gmbh. All rights reserved.