dateIsDaylight
This function is used by Ignition's Expression language.
Descriptionβ
Checks to see if the current timezone is using daylight savings time during the date specified. Will use the current date if no date is specified.
Syntaxβ
dateIsDaylight([date])
Parametersβ
| Type | Parameter | Description |
|---|---|---|
| Date | date | The date to use for the check. If omitted, the current date will be used. [optional] |
Returnsβ
Boolean - Returns true if the current time zone is using Daylight Saving Time during the specified date, or false otherwise.
Examplesβ
Code Snippet
dateIsDaylight(toDate("2007-06-28 00:00:00")) // Will return True in the US/Pacific Timezone, due to that time zone's observation of Daylight Saving Time on the specified date.