Just another update
This commit is contained in:
parent
a25938f123
commit
00a190b0a6
6591 changed files with 94363 additions and 23227 deletions
|
|
@ -1,7 +1,7 @@
|
|||
include c:\cxpl\codes; \intrinsic 'code' declarations
|
||||
|
||||
|
||||
proc WeekDay(Year, Month, Day); \Return day of week (0=Sat 1=Sun..6=Fri)
|
||||
func 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];
|
||||
return rem((Day + (Month+1)*26/10 + Year + Year/4 + Year/100*6 + Year/400) / 7);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue