Skip to main content
Version: 8.1

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​

TypeParameterDescription
DatedateThe 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.