// Program .....: RTC_Relay
// Author ......: Joe Pitz, Objetek Systems, objetek@gmail.com
// Copyright ...: Creative Commons, CC BY-SA
// Description .: Turn on and off a latching relay using a ATMega 328P
// Date Created.: 10/30/2011
// Usage and dependencies:
//
// Variables are used to set start time and end time.
// Times are based on 24 hour clock, i.e.:
// 1:00 pm = 13:00 and Midnight is 00:00
//
// Start time must be less than end time and both times must fall within the
// same 24 hour period.
//
// Code uses RTCLIB, a branch provided from:
// https://github.com/adafruit/RTClib
//
// Thanks to LadyAda for the great tutorial on DS1307
// http://www.ladyada.net/learn/breakoutplus/ds1307rtc.html