Const
Whether a duration lies in the past, the future, or is the present moment. Controls the prefix/suffix applied when formatting (e.g. "ago" vs "in").
Readonly
The duration is in the future (e.g. "in 2d").
The present moment; formats to a localized "Now".
The duration is in the past (e.g. "2d ago").
Whether a duration lies in the past, the future, or is the present moment. Controls the prefix/suffix applied when formatting (e.g. "ago" vs "in").