Package hw
Class IO

Public Method getTime

static Time getTime()

Throws:

_INSERT_METHOD_SIGNATURE_HERE_

Description:

Returns Description
static Time provides infromation about the current time

The getTime() method returns the current time of the real-time clock.

Example

Time time = IO.getTime();

int hour  = time.getHour();

int min   = time.getMinute();

int sec   = time.getSecond();

Alternatively a value can be optained with a single call:

String time = IO.getTime().toString();

See also:

IO.setTime(int, int, int)
IO.getDate()