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