Method: IceCube::TimeUtil::TimeWrapper#clear_day

Defined in:
lib/ice_cube/time_util.rb

#clear_dayObject

Move to the first of the month, 0 hours



333
334
335
# File 'lib/ice_cube/time_util.rb', line 333

def clear_day
  (@time.day > 1) ? @time -= (@time.day - 1) * ONE_DAY : @time
end