The #WSUNRISE24# tag is not showing a leading zero. I’m using instead
a text field with a 0 and the following in the opacity field - $#WSUNRISEH#>=0&&#WSUNRISEH#<=9?100:0$
There appears to be no way to simulate sunrise so I’m not sure that this will work. Could someone point me in the right direction - please
SR SS will simulate with the Time Machine slider fine . You just have to be aware that it is L.A. SR SS .
BTW you do not need sunrise >=0 only the <= you have .
Of course #WSUNRISEH# is a static number and will not change with the slider . Here is a solution . Also a test with DH to see it working using the slider .
.
$#WSUNRISEH#<=9?0:$#WSUNRISEH#
.
$#DH#<=9?0:$#DH#
.
The bad thing is some watches will show the leading zero and others won’t for some reason. This is what I use to make sure the 12 and 24-hour sunrise and sunset times have the leading zero where needed. Without using the (pad in the minutes for a sunrise or sunset and is at 00-09 minutes, it will only show the second number without the leading zero. Using the pad function fixes that issue and the 24-hours leading zero for sunrise.
DAY
$(((#DH#)*60)+#Dm#)<(((#WSH#)*60)+#WSm#)&&(((#DH#)*60)+#Dm#)>(((#WRH#)*60)+#WRm#)?160:999$
NIGHT
$(((#DH#)*60)+#Dm#)<(((#WSH#)*60)+#WSm#)&&(((#DH#)*60)+#Dm#)>(((#WRH#)*60)+#WRm#)?999:160$
12 Hour
$#DTIMEFORMAT#==12?100:0$
24 Hour
$#DTIMEFORMAT#==24?100:0$
Sunrise & Sunset (NO AM/PM TAGS) (Leading zero on 24 hour only)
Sunrise 12h (#WSUNRISEH#):(pad((#WSUNRISEM#), 2))
Sunrise 24h (pad((#WSUNRISEH24#), 2)):(pad((#WSUNRISEM#), 2))
Sunset 12h (#WSUNSETH#):(pad((#WSUNSETM#), 2))
Sunset 24h (pad((#WSUNSETH24#), 2)):(pad((#WSUNSETM#), 2))
In my expression template I use:
$#DISDAYTIME#==true&&#DTIMEFORMAT#==12?#WSh#:$$#DISDAYTIME#==true&&#DTIMEFORMAT#==24?#WSHZ#:$$#DISDAYTIME#==false&&#DTIMEFORMAT#==12?#WRh#:$$#DISDAYTIME#==false&&#DTIMEFORMAT#==24?#WRHZ#:$:$#DISDAYTIME#==true?#WSmZ#:#WRmZ#$
This is for deliberately not having a leading zero on 12h format, which I think is fair.
I’m doing the whole time though, not just the hour. Just thought it might spark ideas.
Edit… No, I am doing both. Has been working solidly for months on end on my wrist.
TYPICAL! Not only do I get an answer - I get multiple answers! All of which are right.
Typical of this community - it’s the best out there!
Thanks guys
That shows how many expierience is hidden in this forum
It’s not what’s right. It’s what is right for you. Take, learn, modify, teach us a new way.
I found that in my Career . Ask three makers how to make something you will get three different answers . All work well and you do it the way you first thought any way .