Day of the week: Difference between revisions

Content added Content deleted
(→‎{{header|AutoHotkey}}: Add AppleScript solution)
Line 174: Line 174:
December 25th is a Sunday in: 2011 2016 2022 2033 2039 2044 2050 2061 2067 2072 2078 2089 2095 2101 2107 2112 2118
December 25th is a Sunday in: 2011 2016 2022 2033 2039 2044 2050 2061 2067 2072 2078 2089 2095 2101 2107 2112 2118
</pre>
</pre>

=={{header|AppleScript}}==
<lang applescript>set ChristmasSundays to {}
set Christmas to (current date)
set month of Christmas to December
set day of Christmas to 25
repeat with year from 2008 to 2121
set year of Christmas to year
if weekday of Christmas is Sunday then set end of ChristmasSundays to year
end repeat
ChristmasSundays</lang>


=={{header|AutoHotkey}}==
=={{header|AutoHotkey}}==