Last Friday of each month: Difference between revisions
m
use day_of_week()
(Add entry for SenseTalk) |
m (use day_of_week()) |
||
Line 2,686:
=={{header|Phix}}==
Requires 0.8.1+ (day_of_week() is now ISO 8601 compliant, plus this now uses a new routine: day_of_week()).
<lang Phix>
integer d = days_in_month(y,m),
constant FRIDAY=5▼
a = dow-day_of_week(y,m,d)
▲ printf(1,"%4d-%02d-%02d\n",{year,month,day})
▲ for i=1 to 11 do
end for
end procedure
▲constant FRIDAY=5
last_day_of_month(
{{out}}
<pre>
Year:2012
2012-01-27
2012-02-24
|