Test if the given Temporal.Instant comes before a certain moment in time.
If other is unspecified, compare with the current time.
other
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.
Optional
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? Copy
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?
Test if the given Temporal.Instant comes before a certain moment in time.
If
otheris unspecified, compare with the current time.If
otheris a Temporal.Duration, compare with that duration subtracted from the current time.If
otheris a Temporal.Instant, compare with that instant.