We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Implementation of DateTimeFormat.formatToParts() is missing.
DateTimeFormat.formatToParts()
Any attempt to add this method will likely need to look at the implementation of options which the DateTimeFormat constructor currently ignores.
options
DateTimeFormat
options is most likely integral to the implementation DateTimeFormat.formatToParts() and as such fixing this issue will probably be involved.
Supporting options will also affect DateTimeFormat.format().
DateTimeFormat.format()
Here is a possible test for the latter:
var options = { weekday: "long", year: "numeric", month: "long", day: "numeric", }; var dateTimeFormat = new Intl.DateTimeFormat("en-US", options); // Chrome: Wednesday, May 24, 2023 // HtmlUnit: 05/24/2023 console.log(dateTimeFormat.format(new Date()));
The text was updated successfully, but these errors were encountered:
As always... PR's are welcome
Sorry, something went wrong.
https://github.com/anba/es6draft has a working impl, maybe we can have a look at this
will be hopefully solved as part of #755
No branches or pull requests
Problem in brief
Implementation of
DateTimeFormat.formatToParts()
is missing.Details
Any attempt to add this method will likely need to look at the implementation of
options
which theDateTimeFormat
constructor currently ignores.options
is most likely integral to the implementationDateTimeFormat.formatToParts()
and as such fixing this issue will probably be involved.Supporting
options
will also affectDateTimeFormat.format()
.Here is a possible test for the latter:
The text was updated successfully, but these errors were encountered: