Arduino Function: rtc.setTime

Description

This method sets hours, minutes and seconds into RTC. For hour and meridian parameters is valid the discussion about method setHour.

Syntax

rtc.setTime(15,0,20,10) //for 24h mode rtc.setTime(3,POST_MERIDIAN,20,10) //for 12h mode

Parameters

unsigned int hour * unsigned char meridian * unsigned int minute * unsigned int second

Written by arduino.org