How to print millis in [hh:mm:ss] format?

Hi, look in the reference section for "/", "%" operator and google for sprintf () function.

The millis () function will "roll over" after a few days, so watch out for how you calculate the time interval.

If you need long term accuracy and battery backup for the time, use an rtc, but it sounds like you don't need that.