Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The add()
method of Temporal.PlainDateTime
instances returns a new Temporal.PlainDateTime
object representing this date-time moved forward by a given duration (in a form convertible by Temporal.Duration.from()
).