|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.dalsemi.system.Clock
This class provides access to the TINI Real-Time clock. The methods support
setting and getting the clock values. Getting the time involves calling
getRTC() and then accessing the public static ints
(i.e. year, month, hour,...) to get the clock values. Setting the time
involves setting the public static ints (i.e. year, month, hour,
...) and then calling setRTC(). This class will be modified
at a later date to conform to Java clock/calendar classes.
| Field Summary | |
static int |
date
Day of the month |
static int |
day
Day of the week |
static int |
hour
Hour |
static int |
hundredth
Hundreths of seconds |
static boolean |
is12Hour
12/24 hour flag |
static int |
minute
Minute |
static int |
month
Month |
static boolean |
pm
PM/AM flag |
static int |
second
Second |
static int |
year
Year mod 100 |
| Constructor Summary | |
Clock()
Constructor |
|
| Method Summary | |
static void |
getRTC()
Reads Real time clock values from hardware clock and places them into Clock static fields. |
static int |
getTickCount()
Get the current time in milliseconds. |
static void |
setRTC()
Reads real time clock values from static ints and writes them to the hardware clock. |
| Methods inherited from class java.lang.Object |
equals,
hashCode,
toString |
| Field Detail |
public static int year
public static int month
public static int day
public static int date
public static int hour
public static int minute
public static int second
public static int hundredth
public static boolean pm
public static boolean is12Hour
| Constructor Detail |
public Clock()
| Method Detail |
public static void getRTC()
public static int getTickCount()
public static void setRTC()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||