Day of the week: Difference between revisions

m
no edit summary
(Added Standard ML solution)
mNo edit summary
Line 2,555:
The following years have Christmas on a Sunday: 2011, 2016, 2022, 2033, 2039, 2044, 2050, 2061, 2067, 2072, 2078, 2089, 2095, 2101, 2107, 2112, 2118
</pre>
 
=={{header|Nanoquery}}==
<lang Nanoquery>import Nanoquery.Util
 
// loop through the years 2008 through 2121
for ($year = 2008) ($year < 2122) ($year = $year + 1)
if (new(Date,"12/25/" + str($year)).getDayOfWeek() = "Sunday")
println "In " + $year + ", December 25th is a Sunday."
end if
end for</lang>
 
=={{header|NetRexx}}==
Anonymous user