scriptReadWrite"timeFormat"

Sets the format for the time.

Synopsis

setValue(string shape, "timeFormat", string format);

getValue(string shape, "timeFormat", string &format);

shape.timeFormat(string format);

Parameters

Parameter Description
shape Name of the object
font The format, for example, "%H. %M. %S " (hours, minutes, seconds). For more information about the possible formats, see chapter "timeFormat".

Description

Sets the format for the time.

exampleExample

The following example sets the format for the time to "%H. %M. %S %Z" (hours, minutes, seconds, short form of the time zone).

main()
{
  CLOCK1.timeFormat("%H. %M. %S %Z"); 
}
Figure 1. The Time Format of the Clock was set to hours, minutes, seconds and short form of the time zone
The Time Format of the Clock was set to hours, minutes, seconds and short form of the time zone

Assignment

Clock