class Time

def all_day

Returns a Range representing the whole day of the current time.
def all_day
  beginning_of_day..end_of_day
end