Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The offset
accessor property of Temporal.ZonedDateTime
instances returns a string representing the offset used to interpret the internal instant, in the form ±HH:mm
(or ±HH:mm:ss.sssssssss
with as much subminute precision as necessary). This offset is guaranteed to be valid for the given instant and time zone at construction time.
The set accessor of offset
is undefined
. You cannot change this property directly. Use the with()
method to create a new Temporal.ZonedDateTime
object with the desired new value (usually also changing the date/time), or use the withTimeZone()
method to create a new Temporal.ZonedDateTime
object in another time zone.