Day of the week of Christmas and New Year: Difference between revisions
Day of the week of Christmas and New Year (view source)
Revision as of 19:50, 7 September 2023
, 8 months ago→{{header|EasyLang}}
Line 619:
=={{header|EasyLang}}==
<syntaxhighlight lang="easylang">
# Based on Conway's doomsday algorithm
# 1. Calculate the doomsday for the century
Line 683:
NthDay += day
# 6. Finally, calculate the day of the week
.
proc numberToDay n . day$ .
Line 702:
.
.
print "2021-12-25 is on " & day$
print "2022-1-1 is on " & day$
</syntaxhighlight>
|