-
Notifications
You must be signed in to change notification settings - Fork 158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TimeZone.getAbsoluteFor() should be able to match other libraries' disambiguation behaviour? #318
Comments
This method returns an array of 0, 1, or 2 Temporal.Absolute objects that may correspond to a particular Temporal.DateTime in a particular Temporal.TimeZone. Closes: #318.
(merging content from #614) It's not just moment/luxon. They inherited this behavior from legacy
In addition (or instead?), we may want a During the TC39 stages, discoverability also might help to highlight the incompatibility to more developers in case there's some important reason we don't know about why the current legacy |
Could we re-open this discussion? I now have a stronger opinion about this, because I learned that RFC 5545 (and other calendar standards like JSCalendar) also requires the same behavior as legacy
Developers can roll their own disambiguation behavior per the cookbook example above, but there does seem to be a cross-platform standardized behavior and legacy behavior that Temporal is diverging from, so for interop reasons it seems worthwhile to make it easier to get the compatible behavior. Whether to make this the default behavior is also worth discussing, but providing an easy-to-use option to support popular interop use cases seems like a good idea regardless of the default. |
Meeting, June 18: No problem adding this behaviour and making it the default, since it is the default in many other places, as long as the option to choose the behaviour remains. |
Follow up from #316. In
TimeZone.getAbsoluteFor()
, the disambiguation options areearlier
,later
, andreject
.@ptomato (from the reference docs) >
@gibson042 >
Indeed it would seem if one would try to reimplement one of these libraries using Temporal, it would be difficult to match their disambiguation behaviour. Are there use-cases that users of these libraries expect this behaviour for?
The text was updated successfully, but these errors were encountered: