"timeFormat"

Defines the time format for the X-axis.

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
format Time format string

Description

This attribute can be used to specify how the times displayed on the x-axis are shown. The format is specified by a string that can contain more than one parameter. The format of the string is:

[<string>][%Specifier][<string>]

Any number of parameters and strings can be mixed.

The valid specifiers and their meanings are shown in the following table:

A format string of the form "Today is the %d. %B" would thus return, for example, "Today is the 02 April" (for that particular date). The format string is not displayed if it is too long to fit onto the screen.

The following example sets the format to "Day as a number. Month in full. Year without Century" representation.

main()
{ 
  BAR_TREND1.timeFormat("%d. %B. %y");
}
Figure 1. The Trend "Time-element Array" and the Representation "Day as a number. Month in full. Year without Century"

Assignment

Bar trend