ago method

DateTime ago()

Returns a DateTime object with the current date and time having this duration subtracted.

Example:

10.minutes.ago(); // DateTime 10 minutes ago from now

Implementation

DateTime ago() => DateTime.now() - this;