DAY_OF_WEEK

The DAY_OF_WEEK function returns an array of integers containing the day of the week for each element of the input IDLDT date/time variable.The array of integers is in the range 0-6, with 0 indicating Sunday and 6 indicating Saturday. This routine uses the JULDAY function.

Calling Sequence:

Result = DAY_OF_WEEK( Dt_days )

Arguments

Dt_days

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

Example

PRINT, DAY_OF_WEEK(TODAY()) ; Print the day of the week for the day this was written (Friday), using the
TODAY function.

IDL prints:

% Compiled module: DAY_OF_WEEK.

5

See Also

IDLDT__DEFINE , DAY_NAME , DAY_OF_YEAR