.getYearSt
DESCRIPTION
Returns a string of the Year. If the Year is less then 10, adds a leading zero in front of the Year.
SYNTAX
RTC.getYearSt();
PARAMETERS
none
RETURNS
Returns a string of the Year. If the Year is less then 10, adds a leading zero in front of the Year.
EXAMPLE
#include
#include
#include
#include
InvIoT_U1 lcd(A0, A1); InvIoT_RTC rtc; void setup() { rtc.init(); } void loop() { lcd.clear(); lcd.print(rtc.getYearSt()); delay(250); }
SEE ALSO
.setYYMMDDHHMMSS
.setYYMMDD
.setHHMMSS
.getYYMMDDHHMMSS
.getTime24