Hello, I’m going to my daughter’s wedding in about ten days, can you help me write a countdown from the current time to the ceremony time? I think I’m a little old to do math…
In hours, even seconds. Thank you for your help, if you accept the challenge.
Here it is:
DAYS:
(floor((((1659154830-([UTC_TS]/1000))/60)/60)/24))
HOURS
(floor((((((1659154830-([UTC_TS]/1000))/60)/60)/24)%1)*24))
MINUTES
(floor((((((((1659154830-([UTC_TS]/1000))/60)/60)/24)%1)*24)%1)*60))
SECONDS
(floor((((((((((1659154830-([UTC_TS]/1000))/60)/60)/24)%1)*24)%1)*60)%1)*60))
Replace 1659154830 with your event UTC Timestamp in seconds. Maybe it can be written better, but I don’t have much time to think about it
I wish your daughter all the best in life and enjoy the wedding!
Tomas
Edit: Simple way
- Install Google Clock app
- create or use watch face with a custom complication (preferably RANGED_VALUE or SHORT_TEXT)
- customize & add “Countdown to date” complication
- set event date when prompted and profit !
A big thank you for your collaboration and thank you, also for your wishes for the wedding. My daughter (French, but also English for 3 years) is marrying an Englishman from Newcastle, in Newcastle. I will have to improve my English.
Again a big thank you!
Thanks a lot Tomas! I did it. Countdown is in the upper right corner.
I blurred the photo. They are fans of “Star Wars”
Perfect !
No problem
Have a great week !
Finally, this is what I did :
(floor((((“Event UTC Timestamp in seconds”-([UTC_TS]/1000))/60)/60)/24)) j
(floor((((“Event UTC Timestamp in seconds”-([UTC_TS]/1000))/60)/60)%24)) h
(floor((((“Event UTC Timestamp in seconds”-([UTC_TS]/1000))/60)%60))) mn
(floor((((“Event UTC Timestamp in seconds”-([UTC_TS]/1000))%60)))) s
Thanks Tomas.