system.date.isDaylightTime
Description
Checks to see if the current timezone is using daylight savings time during the date specified.
Syntax
system.date.isDaylightTime ([date] )
-
Parameters
Date date - The 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 dalight savings time in the current timezone, false (0) otherwise.
-
Scope
All
Code Examples
Code Snippet
date = system.date.getDate(2018, 6, 28)print system.date.isDaylightTime(date) #Will print True in the US Pacific Timezone.