Need Help with Fixed GMT+3:30 (Iran) Time in 12-Hour Format with AM/PM

Hello Facer Community,

I’m new to Facer and still learning, so please excuse me if this is a basic question.

I’d like to create a second digital clock on my watch face that always shows Iran time (GMT+3:30) in 12-hour format with AM/PM, completely independent of my watch’s local time or location.

I want it based only on GMT, with a fixed +3:30 offset applied.

Could someone please share the correct Facer expression or method to achieve this?
Specifically, I need:

• Hour and minute calculation for GMT+3:30
• Proper AM/PM indicator for that fixed time zone

Thanks in advance for helping a total beginner get this working!

3 Likes

Hello!
Welcome to Facer :slight_smile:
For the Hour, you can create a text layer and put this in:
(( ( (floor((#DUH#*60+#DUm#+210)/60)) % 24 + 11 ) % 12 ) + 1)

For minute, enter:
((#DUH#*60+#DUm#+210)%60)

Hope that helps!

3 Likes

Then, for AM/ PM.
Create a text field that says AM and include this in the OPACITY section:
$(floor((#DUH#*60+#DUm#+210)/60)%24)<12?100:0$

Create a text field that says PM and include this as OPACITY:
$(floor((#DUH#*60+#DUm#+210)/60)%24)>=12?100:0$

Let us know how you go or if you have any issues!

3 Likes

I did not try the conditions, but I guess it would need just one in text field like
$(floor((#DUH#*60+#DUm#+210)/60)%24)<12?AM:PM$
instead of solving opacity for two of them.

3 Likes

Should if he wants AM and PM to be in the same place (rather than AM on top and BM below) :+1:

4 Likes