method

ago

v5.2.3 - Show latest stable - Class: Date
ago(seconds)
public

Converts Date to a Time (or DateTime if necessary) with the time portion set to the beginning of the day (0:00) and then subtracts the specified number of seconds.