AM or PM indicator

How do I create a text object that shows “AM” or “PM” according to the time of day?

Hi @Kood_Garma,

Add a digital clock component and put ‘a’ in the ICU Format of the Properties.

Azad

1 Like

Using two different images as objects, the tag expressions would be these:

For AM object: ([H]<12)?100:0
For PM object: ([H]>11)?100:0

1 Like

To expand on Azad’s answer you can remap the AM or PM to an image using a bitmap font. The GWS Tutorial has a section on how to replace a digital clock component.

Ron
Samsung Developer Program

2 Likes