Monthly Calendar by clock

#!ruby -nardate
d=Date.parse$F*'/'
puts d.strftime("%b %Y"),(s=" "*3*d.wday+(d...d>>1).map{|x|"%3d"%x.day}*"").unpack("A21"*(2+~-s.size/21))

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

download

return to the top page