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 15:40, 19 December 2021
, 2 years ago→{{header|Ruby}}
(→{{header|Ruby}}: Add Ruby) |
|||
Line 311:
=={{header|Ruby}}==
This uses the same years as the Raku example. The Ruby date class does however take the calendar reform (default 1582) into account, so the days for 1578 differ from all other languages so far.
<lang ruby>require 'date'
Line 333:
In 2393, New year's day is on a Friday, and Christmas day on Saturday.
</pre>
=={{header|Wren}}==
{{libheader|Wren-date}}
|