Day of the week: Difference between revisions

Content deleted Content added
Petelomax (talk | contribs)
Line 3,228: Line 3,228:


=={{header|Phix}}==
=={{header|Phix}}==
<lang Phix>sequence res = {}
<lang Phix>-- demo\rosetta\Day_of_the_week.exw
sequence res = {}
for y=2008 to 2121 do
for y=2008 to 2121 do
if day_of_week(y,12,25)=1 then
if day_of_week(y,12,25,true)="Sunday" then
res = append(res,y)
res = append(res,y)
end if
end if