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 09:36, 28 May 2023
, 1 year ago→{{header|EasyLang}}
(→{{header|Wren}}: Now uses new Date.fromJulian method.) |
|||
Line 619:
=={{header|EasyLang}}==
<syntaxhighlight lang="easylang">
# Based on Conway's doomsday algorithm
# 1. Calculate the doomsday for the century
Line 685:
result = (januaryOne + NthDay - 1) mod 7
.
if n = 0
day$ = "Sunday"
|