Day of the week: Difference between revisions
Content added Content deleted
m (→{{header|Objective-C}}: modernize) |
(Added zkl) |
||
Line 2,570: | Line 2,570: | ||
2118 |
2118 |
||
</pre> |
</pre> |
||
=={{header|zkl}}== |
|||
ISO dates, monday is 1, sunday is 7 |
|||
<lang zkl>var [const] D=Time.Date; |
|||
foreach y in ([2008..2121]){ |
|||
if (7==D.weekDay(y,12,25)) println(y) |
|||
}</lang> |
|||
{{out}} |
|||
<pre> |
|||
2011 |
|||
2016 |
|||
2022 |
|||
2033 |
|||
2039 |
|||
2044 |
|||
2050 |
|||
2061 |
|||
2067 |
|||
2072 |
|||
2078 |
|||
2089 |
|||
2095 |
|||
2101 |
|||
2107 |
|||
2112 |
|||
2118 |
|||
</pre> |
|||
{{omit from|GUISS|We could open a calendar, but the operator would have to read it}} |
{{omit from|GUISS|We could open a calendar, but the operator would have to read it}} |