class Time

def today?

Tells whether the Time object's time is today
def today?
  to_date == ::Date.current
end