Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.6a

Application v 6.0a

  

 

Chapter FiveGeneral Functions (continued)

IsUSTradingHoliday Function

Overview

The IsUSTradingHoliday function tests the specified date for being a US holiday for trading markets.

Syntax/Parameters

Syntax

boolean = IsUSTradingHoliday ( 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 trading 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 IDE, Legato Basic

Page revised 2025-03-13