Day of the week of Christmas and New Year: Difference between revisions
Content added Content deleted
(more years) |
No edit summary |
||
Line 194: | Line 194: | ||
In 2245, New Years is on a Wednesday, and Christmas on a Thursday. |
In 2245, New Years is on a Wednesday, and Christmas on a Thursday. |
||
In 2393, New Years is on a Friday, and Christmas on a Saturday.</pre> |
In 2393, New Years is on a Friday, and Christmas on a Saturday.</pre> |
||
=={{header|Ring}}== |
|||
<lang ring> |
|||
see "working..." + nl |
|||
load "guilib.ring" |
|||
weekdays = ["monday","tuesday","wendesday","thirsday","friday","saturday","sunday"] |
|||
oDate1 = new QDate() |
|||
oDate2 = new QDate() |
|||
oDate1.setDate(2021,12,25) |
|||
oDate2.setDate(2022,1,1) |
|||
d1 = oDate1.dayOfWeek() |
|||
d2 = oDate2.dayOfWeek() |
|||
see "This year's Christmas is on a " + weekdays[d1] + nl |
|||
see "Next new year is on a " + weekdays[d2] + nl |
|||
see "done..." + nl |
|||
</lang> |
|||
{{out}} |
|||
<pre> |
|||
working... |
|||
This year's Christmas is on a saturday |
|||
Next new year is on a saturday |
|||
done... |
|||
</pre> |
|||
=={{header|Wren}}== |
=={{header|Wren}}== |