Method: Time#today?

Defined in:
lib/project/ext/time.rb

#today?Boolean

Returns:

  • (Boolean)


14
15
16
17
# File 'lib/project/ext/time.rb', line 14

def today?
  today = Time.now
  (self.year == today.year) && (self.month == today.month) && (self.date == today.date)
end