Promotic

SetHour - method of the PmDateObject object

Description:
Sets the PmDateObject object to desired hour (eventually minute, second, millisecond).
Syntax:
Empty SetHour(Long hour, [Long minute], [Long second], [Long milli])
Parameters:
hour(Long) hour. Number between 0-23.
minute[optional] (Long) minute. Number between 0-59.
If not set, then the minute is not changed.
second[optional] (Long) second. Number between 0-59.
If not set, then the second not changed.
milli[optional] (Long) millisecond. Number between 0-999.
If not set, then the millisecond is not changed.
Note:
This method is also functional in Web panels.
Example1:
JavaScriptSelect and copy to clipboard

var oDate = Pm.CreatePmDateObject();
oDate.SetHour(10);
Example2:
JavaScriptSelect and copy to clipboard

var oDate = Pm.CreatePmDateObject();
oDate.SetHour(10, 30, 0, 0);

History:
Pm8.02.00: Created
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

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