IsDaylightSavings

Mon 01 January 2018

Syntax

IsDaylightSavings(datetime, {timezone | "Local" | "Base"})

Description

Use the IsDaylightSavings function to determine if daylight saving time is active in the specified time zone at the specified date and time. For time zones that don’t observe daylight saving time, this function always returns False.

The system’s base time zone is specified on the PSOPTIONS table.

Parameters

Field or Control

Definition

datetime

The DateTime value you want to check.

timezone | Local | Base

Specify a value for converting datetime . The values are:

  • timezone - a time zone abbreviation or a field reference to be used for converting datetime .

  • Local - use the local time zone for converting datetime.

  • Base - use the base time zone for converting datetime .

Returns

A Boolean value: True if daylight saving time is active in the specified time zone at the specified date and time. Returns False otherwise.