Day of the week: Difference between revisions
PascalABC.NET
(Added MiniScript) |
(PascalABC.NET) |
||
Line 4,245:
{{libheader|sysutils}}{{works with|Free Pascal}}
See [[Day_of_the_week#Delphi | Delphi]]
=={{header|PascalABC.NET}}==
<syntaxhighlight lang="delphi">
const Sunday = System.DayOfWeek.Sunday;
begin
(2008..2121).Where(y -> DateTime.Create(y,12,25).DayOfWeek = Sunday).Println
end.
</syntaxhighlight>
{{out}}
<pre>
2011 2016 2022 2033 2039 2044 2050 2061 2067 2072 2078 2089 2095 2101 2107 2112 2118
</pre>
=={{header|Peloton}}==
|