Expand description
Time/date conveniences (Rails 2.days.ago, beginning_of_day, …).
Functions§
- beginning_
of_ day - Midnight at the start of
dt’s day (Railsbeginning_of_day). - days_
ago ndays before now (Railsn.days.ago).- days_
from_ now ndays after now (Railsn.days.from_now).- end_
of_ day - The last second of
dt’s day (Railsend_of_day). - hours_
ago nhours before now.