Package hw
Class Time

Public Method getSecond

int getSecond()

_INSERT_METHOD_SIGNATURE_HERE_

Description:

Returns Range Description
int 0...59 the stored second 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 second value at the objects creation time will be stored into the Time object for further use. The getSecond() method returns the second as an integer value.

Example

Time saveCurrentTime = IO.getTime();

Console.println("stored second: " + saveCurrentTime.getSecond());

See also:

IO.getTime()
IO.setTime(int, int, int)