Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The withPlainTime()
method of Temporal.ZonedDateTime
instances returns a new Temporal.ZonedDateTime
object representing this date-time with the time part entirely replaced by the new time (in a form convertible by Temporal.PlainTime.from()
)
This method will replace all time properties, defaulting to 0
where properties are unspecified. If you only want to replace some of the time properties, use the with()
method instead.