INTEGER FUNCTION WKDAY( JDATE )
INTEGER JDATE ! Julian date (YYYYDDD)
int wkdayc( int jdate ) ;
See also subroutines DAYMON(), JULIAN(), MMDDYY(), and DT2STR() as well as EDSS/ Models-3 date-time manipulation programs gregdate and juldate.
#include "iodecl3.h" for C.
...
...
INTEGER WKDAY
INTEGER JDATE, IDAY
...
IDAY = WKDAY( 1988001 )
C Now IDAY is day of the week for Jan. 1, 1988
...
...
#include "iodecl3.h"
...
int wday ;
...
wday = wkdayc( 1988001 ) ;
/* Now IDAY is day of the week for Jan. 1, 1988 */
...
Up: Date-Time Manipulation Routines
To: Models-3/EDSS I/O API: The Help Pages