This function is used in Python Scripting.

Description

Checks to see if the current time zone is using Daylight Saving Time during the date specified.

Client Permission Restrictions

This scripting function has no Client Permission restrictions.

Syntax

system.date.isDaylightTime([date])

  • Parameters

Date date - The date you want to check if the current time zone is observing Daylight Saving Time. Uses now() if omitted. [optional]

  • Returns

Boolean - True if date is observing Daylight Saving Time in the current time zone; 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.
Keywords

system date isDaylightTime, date.isDaylightTime