Returns the year in string form with input of year or date, with option n.
See this note.
string YearName(double d, int n);
d
n
0 | Returns two digits, like 98, 08 |
---|---|
1 (default) | Returns two digits, like '98, '08 |
2 | Returns full 4 digits year, 1998, 2008 |
If the d is a Julian days value, returns the year in string form with input of year or date, 08, '08 or 2008.
If the d is not a Julian days value, returns -1.
string yy$=YearName(2454827.5982639, 2)$; yy$=; //Should return the year of this time, 2008.