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"
Example:
JavaScriptVBScriptSelect and copy to clipboard
var bIsDaylight = Pm.IsDaylight();
Dim bIsDaylight
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, the method returned invalid flag.