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 18:42, 24 November 2021
, 2 years agojulia example
(Add Factor) |
m (julia example) |
||
Line 33:
In 2393, New Years is on a Friday, and Christmas is on a Saturday.
</pre>
=={{header|Julia}}==
See also https://docs.julialang.org/en/v1/stdlib/Dates/#Dates.format-Tuple{TimeType,%20AbstractString}
<lang julia>using Dates
println("Christmas 2021: ", Dates.format(DateTime(2021, 12, 25), ", U d, Y")) # "Saturday, December 25, 2021"
println("New Years Day 2022: ", Dates.format(DateTime(2022, 1, 1), ", U d, Y")) # "Saturday, January 1, 2022"
</lang
=={{header|Phix}}==
|