cal by khtokage

#!ruby -nardate
d=Date.parse *$F*'/';a=(1-d.wday..((d>>1)-1).day).map{|j|'%2s'%(j>0?j:p)};puts d.strftime('%B %Y').center(20),"Su Mo Tu We Th Fr Sa",(0..5).map{a.shift(7)*' '}

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

download

return top