Find the last Sunday of each month: Difference between revisions
Content added Content deleted
m (→{{header|Wren}}: Minor tidy) |
|||
Line 5,057: | Line 5,057: | ||
=={{header|Wren}}== |
=={{header|Wren}}== |
||
{{libheader|Wren-date}} |
{{libheader|Wren-date}} |
||
<syntaxhighlight lang=" |
<syntaxhighlight lang="wren">import "os" for Process |
||
import "/date" for Date |
import "./date" for Date |
||
var args = Process.arguments |
var args = Process.arguments |
||
Line 5,081: | Line 5,081: | ||
{{out}} |
{{out}} |
||
<pre> |
<pre> |
||
$ wren |
$ wren Find_the_last_Sunday_of_each_month.wren 2013 |
||
The dates of the last Sundays in the month for 2013 are: |
The dates of the last Sundays in the month for 2013 are: |
||
2013-01-27 |
2013-01-27 |
||
Line 5,096: | Line 5,096: | ||
2013-12-29 |
2013-12-29 |
||
$ wren |
$ wren Find_the_last_Sunday_of_each_month.wren 2020 |
||
The dates of the last Sundays in the month for 2020 are: |
The dates of the last Sundays in the month for 2020 are: |
||
2020-01-26 |
2020-01-26 |