year Function
|
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: |
|
Part |
Description |
|
daycount |
Day number. Base date for the day count is 1-JAN-2000 (this is day #0). |
Examples
Tibbo BASIC
b = year(366) ' result will be 1 (this day number is in year 2001).