We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hello :) I'm pretty new to coding and hoping someone could help me out. I'm trying to make a simple digital clock that displays in realtime the "age" of the earth. For example, "4.54 billion years: 201 days: 48 mins: 08 seconds (and counting)". I'm not sure how to manipulate the time functions to get what I want. Please HELP Thanks in advance :)
Answers
Well, second(), minute(), and hour() report the time on your system's clock.
For everything else, a clever use of millis() is what you're probably going to need.
As this forum is not for providing full-code solutions, you have to post (and please read the thread about how to format it correctly first!) your code showing your attempt at doing this before you'll get more help.
millis()
...year()
gets you our year (since Christ) so you need to add 4,54 billion yearsdays is probably the hardest sind
day()
gets you only the day in the current month