Promotic

TableTimeFormatType - property of the PmgTrendViewer object

Description:
Format type of time column values in the table mode.
For setting the format of the time values it is necessary to set the TableTimeFormatType and TableTimeFormat properties.
Syntax:
Long TableTimeFormatType
Values:
10 - The TableTimeFormat property specifies the formatting rule in the form of a text string in the syntax of the C language.
In the TableTimeFormat property it is possible to enter, for example string "%d.%m.%Y, %H:%M:%S.%T", where
d=day (01-31),
m=month (01-12),
Y=year (e.g. 2023),
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 digits 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.
20 (default) - The automatic and optimized way of displaying the time, the TableTimeFormat property is not used in this case.
Note:
Property access for read and write. The default value of this property is defined in the "Table time format type" configurator of this object.
 
This property is also functional in Web panels.
 
The property is used only if the table mode is set.
See also:
Example:
Values in the time column are the time according to the format: day.month.year hour:minute:second.
JavaScriptVBScriptSelect and copy to clipboard

var oTView = pMe.Items("../TrendView");
oTView.TableTimeFormatType = 10;
oTView.TableTimeFormat = "%d.%m.%Y %H:%M:%S";
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r.o.