Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The since()
method of Temporal.Instant
instances returns a new Temporal.Duration
object representing the duration from another instant (in a form convertible by Temporal.Instant.from()
) to this instant. The duration is positive if the other instant is before this instant, and negative if after.
This method does this - other
. To do other - this
, use the until()
method.