agoBy method

DateTime agoBy(
  1. Duration duration
)

Returns the point in time Duration amount of time ago.

Implementation

DateTime agoBy(Duration duration) => now().subtract(duration);