Jump to content

Day of the week of Christmas and New Year: Difference between revisions

(→‎{{header|Wren}}: Now uses new Date.fromJulian method.)
Line 619:
=={{header|EasyLang}}==
<syntaxhighlight lang="easylang">
funcproc dayOfTheWeek year month day . result .
# Based on Conway's doomsday algorithm
# 1. Calculate the doomsday for the century
Line 685:
result = (januaryOne + NthDay - 1) mod 7
.
funcproc numberToDay n . day$ .
if n = 0
day$ = "Sunday"
2,058

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.