Reference Language | Libraries | Comparison | Changes
Set hour, minute, second, day, month and year of the RTC
void setTime(int hour, int minute, int second, int day, int month, int year)
void setTime(unsigned long t)
hour: the hour value to be set.
minute: the minute value to be set.
second: the second value to be set.
day: the day value to be set.
minute: the minute value to be set.
year: the year value to be set.
t: the current number of seconds since Jan 1 1970
Corrections, suggestions, and new documentation should be posted to the Forum.
The text of the Arduino reference is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.