method

prev_day

rails latest stable - Class: DateAndTime::Calculations

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v5.2.3) is shown here.

prev_day(days = 1)
public

Returns a new date/time the specified number of days ago.