cal by murky-satyr

for(;[m,y]=readline(o='\nSu Mo Tu We Th Fr Sa').split(i=d=s=' '),y;print(h,i<36?o+n:o))for(D=new Date(y,m-1),f=D.toLocaleFormat('%B %Y');i<D.getDay()||D<new Date(y,m)-++d*86e6?o+=(i++%7?s:n='\n')+/..$/(s+d):!(h=/.{19}/(f=s+f+s)););

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page