Look at the Time library, TimesAlarms also if you need to run code at specific times.
http://playground.arduino.cc/Code/time
Look at the Time library, TimesAlarms also if you need to run code at specific times.
http://playground.arduino.cc/Code/time