[ANSWERED] Countdown display clock
-
I am looking for a user actor or izzy patch that will display a live countdown of the years, months, days, hours, minutes & seconds between May 20, 2017 at 2pm and the next US presidential election day(Nov 8, 2020 at 8pm).
-
...with an override facility should the present POTUS have to stand down for some reason? ;)
-
@vanderzee
I guess javascript would be the best way to go, but I am not a JS expert. Using standard Isadora actors for this long time period would be a pain, because months have 28, 30 or 31 days and in 2020 February has 29 days.
Best Michel
-
you could syphon this: https://www.timeanddate.com/co...
-
@vanderzee
I may be able to do it in JavaScript, its my first time using it and it's a perfect project for learning. I already have days, hours, minutes and seconds output. So give me some time :-).
Best Michel
-
@vanderzee
you are saying Nov 8, 2020 at 8pm. I guess you mean Nov 3. Right?
One tricky thing: the accuracy is depending on your destinations time. If you are googling count down us election 2020 the timers differ by a few hours. So I need to know how much your time zone is off the Washington DC timezone.
Best Michel
-
@vanderzee
Ok hier is the first version with only days, hours, minutes and seconds.
US election CountdownV1.izzBest Michel
-
@Michel - Sounds like you are more expert at JS than you realize! Thanks for working on this.
-
@Michel - Thanks. Just looked at the patch. Perfect. I can figure out how to tweak the formatting to fit my projection.
-
nice patch...It's seems to be perfect (I think difference is due to different time zone)
but so sad to see such a big amount of time ;-)
-
Yes the difference sure is the time zone. The JavaScript code takes your system time and compares it with the future time, so the result will always be the date and time of your current destination. To compensate you have to add or subtract the offset hours to the country or timezone you want to have.
Even if you compare different online counters for that election date they often show different values. Some code takes the time of the server location, other take your system time and other have fixed the time for that certain timezone they want the countdown for.
Best Michel