Skip to main content
Version: 7.9

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

Bool - True (1) if date is observing daylight savings time in the current timezone, false (0) otherwise.

Scope

All

Code Examples

Example #1
date = system.date.getDate(2018, 6, 28)
print system.date.isDaylightTime(date) #Will print True in the US Pacific Timezone.