Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.5d

Application v 5.25a

  

 

Chapter FiveGeneral Functions (continued)

SubtractDays Function

Overview

The SubtractDays function subtracts or adds a specified number of days from an ISO-8601 formatted date.

Syntax/Parameters

Syntax

string = SubtractDays ( string value, int bias );

Parameters

value

A string in ISO-8601 format. The format need not contain the time.

bias

An int containing a positive or negative amount of days by which to adjust the date.

Return Value

Returns a string as an adjusted ISO-8601 date or an empty string on failure. Use the GetLastError function to retrieve a formatted error code. The most common error is a format or syntax error in the source value parameter.

Remarks

The SubtractDays function will count the leap years and days of months to make its adjustments. The source date must be later than January 1, 1601.

If a time value is provided, it is passed through.

Related Functions 

Platform Support

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

Legato IDE, Legato Basic