#3 dayOf function

open
nobody
None
5
2010-02-10
2010-02-10
Anonymous
No

day dayOf(date d)
{
day x=saturday;
x+=d-date(1,1,2000);
return x;
}

what does exactly this function and what does the line x+=d-date(1,1,2000);?

Discussion