Method: Mallard::Date#ditm

Defined in:
lib/mallard/date.rb

#ditmObject

days in this month



16
17
18
# File 'lib/mallard/date.rb', line 16

def ditm    # for the uninitiated:  make a new date on the 1st of the month, add 1 month, subtract 1 day, return the day field
    ((Mallard::Date.new(year, month) >> 1) - 1).day
end