Update cookies preferences
Promotic

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 formatting rule 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. 2024),
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.
Initial value is string "%d.%m.%Y %H:%M:%S".
Syntax:
Variant TableTimeFormat
Note:
Property access for read and write. The default value of this property is defined in the "Table time format" configurator of this object.
 
This property is also functional in Web panels.
 
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 from the property
oTView.TableTimeFormat = "%d.%m.%Y %H:%M:%S";   // Writing into the property
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.31 SCADA system documentation MICROSYS, spol. s r.o.

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