Year Function

Top  Previous  Next

 

Function:

Returns the year for a given day number.

Syntax:

year(daycount as word) as byte

Returns:

Two last digits of the year (0 means 2000, 1 means 2001, and so on.)

See Also:

month, date, weekday, daycount, hours, minutes, mincount

 


Part

Description

daycount

Day number. Base date for the day count is 1-JAN-2000 (this is day #0).

Details

---

Examples

 

b = year(366) ' result will be 1 (this day number is in year 2001).