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

m
julia 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}}==
4,108

edits