Promotic

CreatePmDateObject - method of the Pm object

Description:
Creates the auxiliary PmDateObject object for working with date and time, especially in JavaScript panels.
Syntax:
Object CreatePmDateObject([Date tDate])
Parameters:
tDate[optional] (Date) The value of the PmDate - date and time in the PROMOTIC internal numeric form type with date and time for newly created PmDateObject.
If not set, then the new PmDateObject object is set to the current time.
Note:
This method is functional also in Macro expression $.expr and in the onDraw event of the PmgCanvas object.
This method is also functional in Web panels.
Example1:
Creates the PmDateObject object and sets it to current "local time".
JavaScriptSelect and copy to clipboard

var d = Pm.CreatePmDateObject();
Example2:
Creates the PmDateObject object and sets it to date and time represented by PmDate - date and time in the PROMOTIC internal numeric form (the v variable).
JavaScriptSelect and copy to clipboard

var v = Pm.Time;
var d = Pm.CreatePmDateObject(v);

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

Send page remarkContact responsible person
Navigation:
 
- Pm
 
- Abs
- Cos
- CreatePmDateObject
 
 
- E
- Exp
- LN2
- PI
- Pow
- Sin
- Tan
© MICROSYS, spol. s r.o.