day
is the day of the week and the range for this value is 1 to 7. By default, Sunday is equal to 1 and Saturday is equal to 7.setTime()
function extracts each part of date and time, storing each part in the corresponding variable. After this, the registersRTC
array is loaded with these variables and data is sent to the RTC.year
, month
, hour
, minute
, second
→ stores the time and date set
day
→ stores the day of the week
date
→ stores the day of the monthgetTime()
function gets time and date, storing them in the registersRTC
array and the corresponding variables. This function updates all API variables related to time and date:RTC.year
RTC.month
RTC.date
RTC.day
RTC.hour
RTC.minute
RTC.second
year
, month
, hour
, minute
, second
→ stores the time and date set
day
→ stores the day of the week
date
→ stores the day of the monthdow()
function are: year, month and day of month.