Promotic
WikipediaLinkedInYoutubeTwitterFacebook

CreatePmDateObject - method of object Pm

Description:
Creating the auxiliary object PmDateObject for working with date and time, especially in JavaScript panels.
Syntax:
CreatePmDateObject([tDate As Date]) As Object
Calling:
var d = Pm.CreatePmDateObject(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 will be set to current time.
Note:
The method can also be called in the graphic item events for Web panels.

The method is functional also in Macro expression $.expr and in the onDraw event of the PmiCanvas graphic item.

Example1:
Creates the new PmDateObject object and sets it to current "local time".
var d = Pm.CreatePmDateObject();
Example2:
Creates the new PmDateObject object and sets it to date and time represented by PmDate - date and time in the PROMOTIC internal numeric form (variable v).
var v = Pm.Time();
var d = Pm.CreatePmDateObject(v);
PROMOTIC 8.3.21 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.Tavičská 845/21 703 00 Ostrava-Vítkovice