How do I create a text object that shows “AM” or “PM” according to the time of day?
Add a digital clock component and put ‘a’ in the ICU Format of the Properties.
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
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.
Samsung Developer Program