Promotic

GetTime - method of the PmaTrendGroup object

Description:
Returns requested time.
Syntax:
Date GetTime(String sType, Long nTimeType)
Parameters:
sType(String) Specifies what the time has to be returned by the method.
"writenewest" - time of the last written (of the newest) of record is returned
"writeoldest" - time of the oldest written record is returned
nTimeType(Long) Type of returned time
1 - The method returns "local time" (the "standard time" in the standard season and the "daylight-saving time" in the daylight-saving season, corresponds to the computer time depending on the locale setting of Windows system)
2 - The method returns "standard time" (in the daylight-saving and standard season).
See also:
- Pm.GetDateOf (method)
Example:
JavaScriptVBScriptSelect and copy to clipboard

var oTrend = pMe.Pm("/Trends");
var tTime = oTrend.GetTime("writenewest", 1);
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

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