Change opacity on sunset and sunrise

Is there a way to get this to work?

({wsr} < ‘{dh23z}:{dmz}’ and
{wss} > ‘{dh23z}:{dmz}’) and 100 or 0

Or is there another way to do the same?

I don’t think this is currently possible in Studio.
Would need tags for sunrise hour and minute and sunset hour and minute, e.g. {wsrh} {wsrm} {wssh} {wssm} - but this do not exist.
There is another tag {wisday} (is daytime) but this is not currently supported in WFF.

If tags for sunrise/set hour minute available then would be something like

Sunrise in minutes:
{wsrh} * 60 + {wsrm}

Sunset in minutes:
{wssh} * 60 + {wssm}

Current time in minutes:
{dh23} * 60 + {dm}

Then the full conditional opacity expression:
(({dh23} * 60 + {dm}) >= ({wsrh} * 60 + {wsrm})) and (({dh23} * 60 + {dm}) < ({wssh} * 60 + {wssm})) and 100 or 0

Thank you for the answer.
Only thing to do is wait and see what’s coming up in the future.

Using this for now.
({dh24} >= 19 or {dh24} <= 05) and 0 or 100

If WFF will support in the future.
{wsrp} and {wssp} this could also work.

({dtp} > {wsrp} and {dtp} < {wssp}) and 100 or 0

That changes things then… The latest update to Watchmaker app has provided new weather, phone and calendar tags. You need to enable permissions in the Watchmaker app on your phone (check play store to ensure you have latest version - I have 10.2.3 installed on phone and watch)
I have tested formula below on my watch, and its working. 100 = daytime.
The “is daytime” is using the formula below:
({dtp} >= {wsrp}) and ({dtp} < {wssp}) and 100 or 0

In the app it’s still saying this tags are not supported in WFF.
and will return a default value

I will test it. Not too long to wait. Sun is going down in about 45 minutes

Watchmaker will be able to confirm if the wssp and wsrp tags are supported in WFF.
There was not mention of those tags in the previous post below, so it may be that the tags are using default values?

It did not work. It’s returning default value.
About 2 hours after sunset.

Using this for now.
({dh24} >= 19 or {dh24} <= 05) and 0 or 100
Hoping something better will come later

new tags {wsrp} and {wssp} out now - please update phone and watch