system.date.isDaylightTime
This function is used in Python Scripting.
Descriptionβ
Checks to see if the current timezone is using daylight savings time during the date specified.
Client Permission Restrictionsβ
This scripting function has no Client Permission restrictions.
Syntaxβ
system.date.isDaylightTime([date])
Parametersβ
| Type | Parameter | Description |
|---|---|---|
| Date | date | The date you want to check if the current timezone is observing daylight savings time. Uses now() if omitted. [optional] |
Returnsβ
Boolean - True if date is observing daylight savings time in the current timezone; false otherwise.
Scopeβ
Gateway, Vision Client, Perspective Session
Code Examplesβ
Code Snippet
date = system.date.getDate(2018, 6, 28)
print system.date.isDaylightTime(date) #Will print True in the US Pacific time zone.