Arduino Function: rtc.setYear

Description

This method sets year on RTC. Input parameter can be vary from 0 to 63 then you have to pass year without offset e.g. for 2015 you must pass only 15.

Syntax

rtc.setYear(15);

Parameters

unsigned int year

Written by arduino.org