c$Header: /weru/cvs/climate/wind_gen/src/libf/wkday.for,v 1.1 1999-04-12 19:49:49 ffa Exp $ c integer function wkday i (dd, mm, yyyy) c + + + PURPOSE + + + c Given a date in dd/mm/yyyy format c wkday will give the day of the week. c 0 = Monday c 1 = Tuesday c 2 = Wednesday c 3 = Thursday c 4 = Friday c 5 = Saturday c 6 = Sunday c c + + + KEYWORDS + + + c date, utility c c + + + ARGUMENT DECLARATIONS + + + integer dd, mm, yyyy c c + + + ARGUMENT DEFINITIONS + + + c dd - day c mm - month c yyyy - year c c + + + LOCAL DEFINITIONS + + + c julian - julian day value c c + + + FUNCTION DECLARATIONS + + + integer julday c c + + + END SPECIFICATIONS + + + c c We simply find the Julian Day and do a modulo of the value wkday=mod((julday (dd,mm,yyyy)), 7) return end c c$Log: not supported by cvs2svn $ cRevision 1.1.1.1 1999/03/12 17:05:31 wagner cBaseline version of WEPS with Bill Rust's modifications c c Revision 1.1.1.1 1995/01/18 04:20:07 wagner c Initial checkin c c Revision 2.1 1992/03/27 17:22:53 wagner c Version 2 code. c