Returns a date in the future based on a duration from now
function fromNow(duration: Partial<Duration>): Date
// Example:
// Jan 1, 2024 12:00:00AM
ago({days: 1: hours: 2, minutes: 3, seconds: 4}) //=> Date: "2024-01-02T07:03:04.000Z"
Returns a date in the future based on a duration from now
function fromNow(duration: Partial<Duration>): Date
// Example:
// Jan 1, 2024 12:00:00AM
ago({days: 1: hours: 2, minutes: 3, seconds: 4}) //=> Date: "2024-01-02T07:03:04.000Z"