IsUSDaylightSavingsInEffect

STD.Date.IsUSDaylightSavingsInEffect([date])

dateThe date in Date_t format (YYYYMMDD). Optional; defaults to the current UTC date.
Return:IsUSDaylightSavingsInEffect returns TRUE when U.S. daylight saving time is in effect for the specified date, otherwise FALSE.

The IsUSDaylightSavingsInEffect function returns TRUE if daylight saving time is considered in effect for the specified date under U.S. Federal schedules (where those schedules existed), otherwise FALSE.

This function uses a date-only approximation. The start transition date is inclusive and the end transition date is exclusive. If hour-level precision is required around transition times, use timestamp and timezone rules instead.

Historical notes and limitations:

Example:

IMPORT STD;
startOfDST := STD.Date.IsUSDaylightSavingsInEffect(20240310);
endOfDST := STD.Date.IsUSDaylightSavingsInEffect(20241103);
OUTPUT(startOfDST); //startOfDST is TRUE
OUTPUT(endOfDST); //endOfDST is FALSE