Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The subtract()
method of Temporal.Duration
instances returns a new Temporal.Duration
object with the difference between this duration and a given duration. It is equivalent to adding the negated value of the other duration.