Day of the week: Difference between revisions

m
m (→‎using DATE iso: added a programming note concerning the ISO (date) option.)
Line 2,689:
<lang XPL0>include c:\cxpl\codes; \intrinsic 'code' declarations
 
procfunc WeekDay(Year, Month, Day); \Return day of week (0=Sat 1=Sun..6=Fri)
int Year, Month, Day;
[if Month<=2 then [Month:= Month+12; Year:= Year-1];
772

edits