Clock

Clock, displays the system time.

Symbol

Menu ribbon

Start > Controls > Input/output > Text output > Clock

The current date and time of the browser in which the web app is running is displayed via the "Clock" control element. The browser in turn obtains the date and time from the operating system settings. In contrast to DateTimeVarOut, no variable is required to display the current time in the control element.

Clock with date and time output

Functionalities

The control element supports the following functionality:

You can configure these functionalities via the properties in the Properties window when you select the control in the Designer or in the document outline.

Style

There are no system styles available for the control. You can create your own styles for the control. These styles are available for selection in the "Style" property after creation.

Structure

The control element consists of a number of other elements. Both the control itself and its elements can be configured via the properties of the control. Properties for a sub-element of the control can usually be found in the category that bears the name of this element.

Example: The properties for configuring the "Date" element can be found in the Properties window in the "Date" category if you select the control element in the Designer or in the document outline.

The clock and its elements

Automatic positioning of the date and time display

The control automatically positions the date display ("Time" element) and the time display ("Date" element) within the control. The positioning depends on the setting of the "DateTimeMode" property on the one hand and on the settings of the "AlignItems" and "JustifyContent" properties on the other.

AlignItems

Defines the alignment of the Date and Time elements within the row/column. The property is perpendicular to the setting of the "DateTimeMode" property.

JustifyContent

Defines the alignment of the Date and Time elements within the row/column. The property acts in the direction of the setting of the "DateTimeMode" property.

Related topics: