method
change
Ruby on Rails latest stable (v7.1.3.2)
-
0 notes -
Class: ActiveSupport::CoreExtensions::Time::Calculations
change(options)
public
Returns a new Time where one or more of the elements have been changed according to the options parameter. The time options (hour, minute, sec, usec) reset cascadingly, so if only the hour is passed, then minute, sec, and usec is set to 0. If the hour and minute is passed, then sec and usec is set to 0.