Member
lou_lindgren
Calculate how many days in month by index in Ruby
1 2 3
def days(index) ((15662003>>(2*(index-1)))&3) + 28 end