WebbotLib AVR library
WebbotLib It just does it
  C++ documentation  C documentation

set

Attempt to set the clock to the specified date and time.
This will return FALSE if the clock is not accessible.
Syntax
RTC. set(year,month,day,hour,minute,second)
Where RTC is the name you have given to the device in Project Designer.
Parameters
TypeNameDescription
'year'
The year value
'month'
The month value in the range 1 to 12.
'day'
The day of the month value in the range 1 to 31 - or less - depending on the month.
'hour'
The hour value in the range 0 to 23.
'minute'
The minute value in the range 0 to 59.
'second'
The second value in the range 0 to 59.
Returns
boolean
Note
It is up to you to make sure that date is valid. For example: trying to set the date to 31 February will result in an unkown result.

 

 

Valid XHTML 1.0 Transitional