Download Clearance Workbench User Guide

Transcript
ESKORT Clearance Risk Analysis 3.1
Clearance Workbench User Guide
12.2.15 DateXYearBack (string date, double nYears)
Description:
Returns the date that is the specified number of years (nYears) earlier than the
specified date (date).
The returned date has the format: YYYYMMDD.
Syntax:
If date is an empty string, then current date is used instead.
long DateXYearBack(string date, double nYears)
Parameters:
date
The date from which the number of years are withdrawn before the final
date is returned.
The date argument is a string which is assumed to hold a date in the
leftmost 8 positions. This means that valid arguments are of a form
YYYYMMDD or YYYYMMDD-YYYYMMDD.
Example:
DateXYearBack(”20100504”, 3)
Returns the integer value 20100504
12.2.16 DaysBetween (string startDate, string endDate)
Description:
Syntax:
Returns the number of days between the two specified dates. If the two dates
are equal 0 is returned.
double DaysBetween(string startDate, string endDate)
Parameters:
startDate
The date from which the number of days are counted. The argument is a
string which is assumed to hold a date in the leftmost 8 positions. This
means that valid arguments are of a form YYYYMMDD or YYYYMMDDYYYYMMDD.
endDate
The date until which the number of days are counted. The argument is a
string which is assumed to hold a date in the leftmost 8 positions. This
means that valid arguments are of a form YYYYMMDD or YYYYMMDDYYYYMMDD.
Example:
DaysBetween(”20100504”, ”20100501”)
returns the value 3.
icdk/ECL/CWB/User Guide 3.1/v1.2/2011.11.15
142 (176)