Arduino Function: rtc.getYear

Description

This method returns year read on RTC. To obtain correct representation of year add the appropriate offset to the number obtained.

Syntax

rtc.getYear(); 

Returns

 unsigned int year


Based on the reference originally written by Arduino Community,  wiring.org.co and  arduino.cc