GetYearLength (open)

Returns the number of days in a specific year

Syntax

LOADLIB "wh::datetime.whlib";

INTEGER FUNCTION GetYearLength(INTEGER year)

Parameters

INTEGER year

The year for which the number of days should be returned.

Return value

INTEGER

The total number of days in year @italic.

Examples

// Returns the number of days in (leap) year 10000
INTEGER NumDays := GetYearLength(10000);