DAY_OF_YEAR

The DAY_OF_YEAR function returns an array of integers containing the day of the year for each element of an array of IDLDT date/time variables. The result is an array of integers in the range 1-365 (1-366 for leap years).

Calling Sequence

Result = DAY_OF_YEAR( Dt_days )

Arguments

Dt_days

An array of type IDLDT (the IDL date/time structure).

Example

PRINT, DAY_OF_YEAR(TODAY()) ; Print the day of year for the day this was written, using the
TODAY function.

IDL prints:

% Compiled module: DAY_OF_YEAR.

65

See Also

IDLDT__DEFINE , DAY_NAME , DAY_OF_WEEK