class DateTime

Public Instance Methods

happy_birthday?() click to toggle source
# File lib/happy_birthday.rb, line 2
def happy_birthday?
  self.strftime('%m%d') == DateTime.now.strftime('%m%d')
end