GetYearLength (open)
Returns the number of days in a specific year
Syntax
LOADLIB "wh::datetime.whlib";
INTEGER FUNCTION GetYearLength(INTEGER year)Parameters
INTEGER yearThe year for which the number of days should be returned.
Return value
INTEGERThe total number of days in year @italic.
Examples
// Returns the number of days in (leap) year 10000
INTEGER NumDays := GetYearLength(10000);