TemporalDirection: { FUTURE: "future"; NOW: "now"; PAST: "past" } = ...

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").

Type declaration

  • ReadonlyFUTURE: "future"

    The duration is in the future (e.g. "in 2d").

  • ReadonlyNOW: "now"

    The present moment; formats to a localized "Now".

  • ReadonlyPAST: "past"

    The duration is in the past (e.g. "2d ago").