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

Content added Content deleted
Line 311: Line 311:


=={{header|Ruby}}==
=={{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.
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'
<lang ruby>require 'date'


Line 333: Line 333:
In 2393, New year's day is on a Friday, and Christmas day on Saturday.
In 2393, New year's day is on a Friday, and Christmas day on Saturday.
</pre>
</pre>

=={{header|Wren}}==
=={{header|Wren}}==
{{libheader|Wren-date}}
{{libheader|Wren-date}}