The format attribute determines how time is displayed on a clock.
<clock>
Name | Type | Description |
---|---|---|
clockformat | string | A C-style format string (e.g., "hh:mm:ss") specifying how the time should be displayed. See Formatting Strings for Clock Time Display for more information. |
The format attribute takes an expression string that controls how hours, minutes, and seconds are displayed on the screen.
The following clock displays a timer counting down hours, minutes, and seconds:
<clock timer>
/ mode = timer
/ txColor = yellow
/ txBGColor = black
/ timeout = 300000
/ position = (50%, 10%)
/ format = "hh:mm:ss"
</clock>