Promotic

IsDaylight - method of the Pm object

Description:
Detects the setting of the "daylight-saving time" in the entered time.
Syntax:
Long IsDaylight([Date tDate])
Parameters:
tDate[optional] (Date) Time in which the setting of the "daylight-saving time" has to be tested. If the parameter is omitted, then the current time is used.
Return value:
0 - it isn't "daylight-saving time"
1 - it is "daylight-saving time"
Note:
This method is not functional in Web panels.
Example:
JavaScriptVBScriptSelect and copy to clipboard

var bIsDaylight = Pm.IsDaylight();

History:
Pm8.00.09: Fixed bug: during the one hour when the time is switched from daylight-saving time to standard time, returned invalid flag.
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

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