method

ago

v4.1.8 - Show latest stable - Class: DateTime
ago(seconds)
public

Returns a new DateTime representing the time a number of seconds ago. Do not use this method in combination with x.months, use months_ago instead!