Different time zone like 8:30 GMT

Hi Again

How can I add a time zone if it is, for example, +8:30 GMT?

I read other topics, but they are only for +1, +2, +3, +4, etc. times, not if it is like +8:30.

For showing hours, I use this formula, and it seems to work correctly.
(#DUb#+8)

I don’t know how to define a minute.

I used the below formula, but it extends the minute to 90.
(#DUb#+8): (#DUm#+30)

Any help would be appreciated, as always.

1 Like

I think adding any number to #DUb# like you wrote would extend it either over 12 or over 24h which is also not good.

2 Likes

Very few Zones have half hour adjustments best ignore them the small difference. If you are a Pilot you need a different watch. Please.

2 Likes

It can be sorted relatively easy for 24h format. To make the minutes go from 0 to 60 no matter the added 15, 30 or 45 minutes, there needs to be the modulo put in use. For example this would be for zone local + 1.5h:
(floor((#DWFHS#+1.5*15)/15)):((#Dm#+30)%60)
Oops, i have to overthink it a bit for the utc.

3 Likes

I looked into this a while back. The conclusion was too use the DNOW tag.

Check the thread here. You’ll find the code there for hours and minutes.

2 Likes

I guess it could be like this for UTC +1h30m for example
(floor((#DUH#+1+((#DUm#+30))/60)%24)):$(#DUm#+30)%60<10?0:$((#DUm#+30)%60)
for negative values it would need to add there 24h.
for 12h format it would need separate formula in separate field to substitute 12 for 0.

3 Likes

It worked perfectly.Thanks

How can i Add AM/PM beside UTC time ?

1 Like

For AM/PM I would append $#DUH#>11?PM:AM$

2 Likes

Thanks but I didnt mean that . I meant I would like to know how to create AM/PM if UTC time was like +8:30 GMT

I use below formula and worked for me
$(((#DUH#+1+((#DUm#+30))/60)%24))<=12?AM:PM$

2 Likes

Hi @amirderis88
I don’t know if it helps, but I have several dials with an adjustable GMT hand. Not at a fixed time, but at your pleasure.
For advances of an hour I use the formula
((#DUK#*60+#DUm#*0.5)+(#VAR_1#*30)) in rotation
For 1/2 hour advances I use the formula
((#DUK#*30+#DUm#*0.5)+(#VAR_1#*15)) in rotation
If you want to make Am/Pm appear connected to the third hand
Insert in Text Field Am and in Opacity insert
AM opacity: $((#DUH#+#DUm#/60+#VAR_1#*0.5)%24)<12?100:0$
if in rotation formula for 1/2 H
AM opacity: $((#DUH#+#DUm#/60+#VAR_1#*1)%24)<12?100:0$
if in rotation formula for 1 hour
Insert in Text Field Pm and in Opacity insert
$((#DUH#+#DUm#/60+#VAR_1#*0.5)%24)>=12?100:0$
for 1/2 hour
$((#DUH#+#DUm#/60+#VAR_1#*1)%24)>=12?100:0$
for 1h
If you have a 24h dial use
(#DWFHS#+(#VAR_1#*15)) for +1h with a smooth rotation
or
(#DWFH#+(#VAR_1#*15)) for +1h with movement in a jump
Unfortunately these formulas are not my brainchild. They were given to me by some good soul in the community.
Unfortunately that was a long time ago and I don’t remember who he was, otherwise I’d give him due credit by naming him.
Thanks, anyway, to whoever did it.
The formulas, of course, work perfectly

2 Likes