cal by murky-satyr

for(;$=readline();print(i<36?o+n:o)){[m,y]=$.split(x=i=d=s=' ')
for(o=(D=new Date(y,--m)).toLocaleFormat('%B ')+y;!o[19];o=x?o+s:s+o)w=D.getDay(x^=1)
for(o+='\nSu Mo Tu We Th Fr Sa';--w<0&&new Date(y,m,++d).getMonth()-m?0:o+=(i++%7?s:n='\n')+/..$/(s+s+d););}

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

download

return to the top page