DEVICE DRIVERS
setDateTime()
M
X
800 SERIES PROGRAMMERS GUIDE 141
setDateTime()
As user processes are not allowed to set the Linux RTC, applications must call
setDateTime() passing the date and time in the same format used in the shell
command date.
Format: MMDDhhmmYYYY.ss
• MM = Month
• DD = Day
• hh = Hour (24-hour format)
• mm = Minute
• YYYY = Year
• ss = Seconds
Prototype
int setDateTime(char *dateTime)
Return Values
NOTE
setDateTime only sets the Linux RTC. To set the H/W RTC, application must
follow setDateTime with a call to setRTC.
0 Success
Less than 0
Error