.setYYMMDD
DESCRIPTION
.setYYMMDD Sets everything year,month,date.
SYNTAX
void rtc.setYYMMDD(string);
PARAMETERS
String of format "YYMMDD"
The 6 characters of the string, sets the year,month and date. For example for year 2016, month 05(May), date 24 is 160524
rtc.setYYMMDD("160524");
RETURNS
None.
EXAMPLE
#include
#include
#include
#include
InvIoT_U1 lcd(A0, A1); InvIoT_RTC rtc; void setup() { rtc.init(); rtc.setYYMMDD("160524"); } void loop() { lcd.clear(); lcd.print(rtc.getDateYYMMDD('/')); delay(2550); }
SEE ALSO
.setYYMMDDHHMMSS
.setYYMMDD
.setHHMMSS
.getYYMMDDHHMMSS
.getTime24