Advertisement
vedranvinko

days_in_month

Jun 26th, 2015
368
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.07 KB | None | 0 0
  1. def days_in_month(m,y)
  2.   require 'date'
  3.   Date.new(y,m,-1).day
  4. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement