Lego League

Yes, Arduino can do this.
You may also want a real time clock (RTC) to help keep track of time.
Most come with a battery backup in case of power loss.