class Faker::Time

def backward(days: 365, period: :all, format: nil)

Returns:
  • (Time) -

Parameters:
  • format (Symbol) -- The name of a DateTime format to use.
  • period (Symbol) -- The time of day, if any. See {TIME_RANGES}.
  • days (Integer) -- The maximum number of days to go into the past.
def backward(days: 365, period: :all, format: nil)
  time_with_format(date_with_random_time(Faker::Date.backward(days: days), period), format)
end