Last Friday of each month: Difference between revisions

m
tweak code
(Added zkl)
m (tweak code)
Line 1,692:
<lang zkl>var [const] D=Time.Date;
fcn lastFridays(y){[1..12].pump(Console.println,
'wrap(m){ds:=D.daysInMonth(y,m); :
[ds_..1,-1].pump(Void,fcn(y,m,d){
D.weekDay(y,m,d) :
if (_==5)return(Void.Stop,"%d-%02d-%02d".fmt(y,m,d))
Anonymous user