Jump to content

Find the last Sunday of each month: Difference between revisions

m
(→‎{{header|FBSL}}: Reposition.)
Line 1,676:
 
=={{header|Oforth}}==
<lang Oforth>func: lastSunday(y)
{
| m |
Date.JANUARY Date.DECEMBER for: m [
Date newDate(y, m, Date.DaysInMonth(y, m))
while(dup dayOfWeek Date.SUNDAY <>) [ addDays(-1) ] println
println] ;</lang>
]
}</lang>
 
{{out}}
1,015

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.