Instructions

246Libraries
© 2013 Conrad Electronic
Description
All Date and Time values of the internal software clock can be read.
The values of day and month are zero based, a one should be added when printing.
Parameter
indx index of date or time parameter
#define
Index
Meaning
CLOCK_SEC
0
Second
CLOCK_MIN
1
Minute
CLOCK_HOUR
2
Hour
CLOCK_DAY
3
Day
CLOCK_MON
4
Month
CLOCK_YEAR
5
Year
Return Parameter
requested time parameter
5.6.2 Clock_SetDate
Clock Functions
Syntax
void Clock_SetDate(byte day, byte mon, byte year);
Sub Clock_SetDate(day As Byte, mon As Byte, year As Byte)
Description
Sets the date of the internal software clock.
The values of day and month are zero based.
Parameter
day Day
mon Month
year Year