Promotic
WikipediaLinkedInYoutubeTwitterFacebook

TableTimeFormat - property of the PmgTrendViewer object

Description:
Format of time column values in the table mode.

Setting this property differs according to setting the TableTimeFormatType property:

If it is 10, then this is the time and the format formula is set to the TableTimeFormat in the form, for example "%d.%m.%Y %H:%M:%S.%T", where:

d=day (01-31),
m=month (01-12),
Y=year (e.g. 2020),
H=hour (00-23),
M=minute (00-59),
S=second (00-59),
T=millisecond (000-999) - it is possible %nT, where n is count of figures 1, 2 or 3

Any of the chars %d, %m, %Y, %M, ... can be omitted and so to omit the corresponding time item in the presentation.

Initial value is string "%d.%m.%Y %H:%M:%S".

Syntax:
Variant TableTimeFormat
Note:
Property access for read and write. The preset value of this property is defined in the "TableTimeFormat" configurator of this object.

The property is used only if the table mode is set.

Example1:
JavaScriptVBScriptSelect and copy to clipboard

var oTView = pMe.Items("../TrendView");
var nTableTimeFormat = oTView.TableTimeFormat;  //reading

oTView.TableTimeFormat = "%d.%m.%Y %H:%M:%S";  //writing
Example2:
See the example in the description of the TableTimeFormatType property
Example3:
See the example in the description of the TableTimeColumnWidth method
PROMOTIC 9.0.13 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice