Re: need help is this right

Only if you reset or power-up your Arduino at exactly midnight late Saturday night. That is the correct value for a 24 hour period in milliseconds, but not having a reference to when the millis() first started counting would make this method a show stopper I would think. Also the accuracy of millis() function is dependent on the crystal or resonators frequency accuracy and will drift over longer time spans.

Lefty

Buy a ds1307 RealTime Clock or RTC in short and search the forum / platground for a library.
As many people may know on this forum I am a fan of this shield - Data-Logger Shield for Arduino - which includes a RTC.

Once you have set the RTC it will run for years on one single battery. That are a lot of wednesdays :slight_smile: