lejos.robotics
Interface Clock
- All Known Implementing Classes:
- RealTimeClock
public interface Clock
Interface for real time clock devices
- Author:
- Lawrie Griffiths
getYear
int getYear()
throws IOException
- Throws:
IOException
getMonth
int getMonth()
throws IOException
- Throws:
IOException
getDay
int getDay()
throws IOException
- Throws:
IOException
getHour
int getHour()
throws IOException
- Throws:
IOException
getMinute
int getMinute()
throws IOException
- Throws:
IOException
getSecond
int getSecond()
throws IOException
- Throws:
IOException
getDayOfWeek
int getDayOfWeek()
throws IOException
- Throws:
IOException
setHourMode
void setHourMode(boolean mode)
throws IOException
- Throws:
IOException
getDateString
String getDateString()
throws IOException
- Throws:
IOException
getTimeString
String getTimeString()
throws IOException
- Throws:
IOException
getAMPM
String getAMPM()
throws IOException
- Throws:
IOException
getByte
byte getByte(int loc)
throws IndexOutOfBoundsException,
IOException
- Throws:
IndexOutOfBoundsException
IOException
setByte
void setByte(int loc,
byte b)
throws IndexOutOfBoundsException,
IOException
- Throws:
IndexOutOfBoundsException
IOException
setDate
void setDate(int m,
int d,
int y)
throws IllegalArgumentException,
IOException
- Throws:
IllegalArgumentException
IOException
setTime
void setTime(int h,
int m,
int s)
throws IllegalArgumentException,
IOException
- Throws:
IllegalArgumentException
IOException