up Inquisit Language Reference

format attribute

The format attribute determines how time is displayed on a clock.

Member of

<clock>

Syntax

/ format = clockformat

Parameters

clockformat One of the following values:
Value Description
h the hour without a leading zero (0 to 23 or 1 to 12 if AM/PM display)
hh the hour with a leading zero (00 to 23 or 01 to 12 if AM/PM display)
H the hour without a leading zero (0 to 23, even with AM/PM display)
HH the hour with a leading zero (00 to 23, even with AM/PM display)
m the minute without a leading zero (0 to 59)
mm the minute with a leading zero (00 to 59)
s the second without a leading zero (0 to 59)
ss the second with a leading zero (00 to 59)
z the milliseconds second without a leading zero (0 to 999)
zzz the milliseconds second with a leading zero (000 to 999)
AP or A use AM/PM display. AP will be replaced by either "AM" or "PM"
ap or a use am/pm display. ap will be replaced by either "am" or "pm"
t the timezone (for example "CEST")

Remarks

The format attribute takes an expression string that controls how hours, minutes, and seconds are displayed on the screen.

Examples

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>

Send comments on this topic:
Copyright Millisecond Software, LLC. All rights reserved.