From 4083a4be64b158b878c467ddf147b65a0b255a9e Mon Sep 17 00:00:00 2001 From: Michael Dyck Date: Thu, 4 Jan 2018 13:16:14 -0500 Subject: [PATCH] Editorial: resolve "LocalTimeZoneAdjustment" vs "LocalTZA" inconsistency (Could go either way. I chose to resolve it in the direction of smaller diff.) --- spec.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec.html b/spec.html index 6266b5de8f7..37b4117092f 100644 --- a/spec.html +++ b/spec.html @@ -26762,8 +26762,8 @@

Week Day

-

LocalTimeZoneAdjustment ( _t_, _isUTC_ )

-

LocalTimeZoneAdjustment( _t_, _isUTC_ ) is an implementation-defined algorithm that must return a number representing milliseconds suitable for adding to a Time Value. The local political rules for standard time and daylight saving time in effect at _t_ should be used to determine the result in the way specified in the following three paragraphs.

+

LocalTZA ( _t_, _isUTC_ )

+

LocalTZA( _t_, _isUTC_ ) is an implementation-defined algorithm that must return a number representing milliseconds suitable for adding to a Time Value. The local political rules for standard time and daylight saving time in effect at _t_ should be used to determine the result in the way specified in the following three paragraphs.

When _isUTC_ is true, LocalTZA( _t_, true ) should return the offset of the local time zone from UTC measured in milliseconds at time represented by time value _t_ (UTC). When the result is added to _t_ (UTC), it should yield the local time.

When _isUTC_ is false, LocalTZA( _t_, false ) should return the offset of the local time zone from UTC measured in milliseconds at local time represented by time value _t_local = _t_. When the result is subtracted from the local time _t_local, it should yield the corresponding UTC.

When _t_local represents local time repeating multiple times at a negative time zone transition (e.g. when the daylight saving time ends or the time zone adjustment is decreased due to a time zone rule change) or skipped local time at a positive time zone transitions (e.g. when the daylight saving time starts or the time zone adjustment is increased due to a time zone rule change), _t_local must be interpreted with the time zone adjustment before the transition.