Use a DS1307 Real Time Clock chip.  Meant to be used with the Time library.
