Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.5e

Application v 5.25b

  

 

Chapter FiveGeneral Functions (continued)

IsUSFederalHoliday Function

Overview

The IsUSFederalHoliday function tests the specified date for being a US Federal Holiday.

Syntax/Parameters

Syntax

boolean = IsUSFederalHoliday ( string date | qword date );

Parameters

date

A string or qword value as a well formatted date siting or a date-time value, respectively.

Return Value

Returns a boolean as TRUE, FALSE or -1 on failure. Use GetLastError or IsError to determine if an error occurred.

Remarks

The function tests the specified date for being a US Federal Holiday based on published logic. The function does not test for unscheduled holidays.

Since string date interpretation is automatic (SD_AMERICAN), use caution with ambiguous formats. For example, January 12, 2025 is represented is ISO-8601 “2025-01-12” but “2025-12-01” is also a valid date. The function will pick ISO-8601 if the value is ambiguous. See StringToDate for additional information.

Related Functions

Platform Support

Go13, Go16, GoFiler Complete, GoFiler Corporate, GoFiler, GoFiler Lite, GoXBRL

Legato Basic

Page revised 2025-01-21