Duration_ extension

on

Methods

ago() DateTime
Returns a DateTime object with the current date and time having this duration subtracted. [...]
fromNow() DateTime
Returns a DateTime object with the current date and time having this duration added. [...]

Operators

operator /(Duration otherDuration) double
Divides this by otherDuration and returns a fraction. [...]