getUtcOffset method
Returns the offset from UTC, where a positive duration indicates that local time is later than UTC. In other words, local time = UTC + offset.
This is mostly a convenience method for calling GetZoneInterval(instant).WallOffset
,
although it can also be overridden for more efficiency.
instant
: The instant for which to calculate the offset.
The offset from UTC at the specified instant.
Implementation
Offset getUtcOffset(Instant instant) => getZoneInterval(instant).wallOffset;