3.5.1.2.18 Year

Description

This function is used to returns the year as an integer in the range 0100-9999.


See this note.

Syntax

 int Year(double d)

Parameters

d

is a Julian Date Value which can include Time

Return

If it is a Julian days date, return the year, 0100 to 9999.

If it is not a Julian days date, return -1.

Example

int rr=year(2454821);
rr= ; // Should return the year, 2008.

See Also

WeekDay, WeekNum, Month, Day, Hour, Minute, Second, Now,