Find the last Sunday of each month: Difference between revisions
Find the last Sunday of each month (view source)
Revision as of 01:43, 24 October 2015
, 8 years ago→{{header|Sidef}}: modified code to work with Sidef 2.10
(Added Befunge example.) |
m (→{{header|Sidef}}: modified code to work with Sidef 2.10) |
||
Line 1,795:
=={{header|Sidef}}==
<lang ruby>var dt = require 'DateTime';
var (year=2015) = ARGV»to_i»()...;
range(1, 12).each { |i|
var date =
year => year,
month => i
Line 1,806 ⟶ 1,805:
while (date.dow != 7) {
}
say date.ymd;
|