Arduino Function: rtc.getHour

Description

This method return current hours read on RTC. Pay attention to time representation mode to interpret correctly the value returned.

Syntax

unsigned int h=0; h=rtc.getHour();

Returns

 unsigned int hour

Written by arduino.org