@bodil/core - v0.3.0
    Preparing search index...

    Function isBefore

    • Test if the given Temporal.Instant comes before a certain moment in time.

      If other is unspecified, compare with the current time.

      If other is a Temporal.Duration, compare with that duration subtracted from the current time.

      If other is a Temporal.Instant, compare with that instant.

      Parameters

      Returns boolean

      time.isBefore(instant) // is `instant` in the past?
      time.isBefore(instant, otherInstant) // is `instant` before `otherInstant`?
      time.isBefore(instant, duration) // is `instant` more than `duration` ago?