Reference for stage 2.7 intl-era-monthcode#42660
Conversation
The Chinese calendar example incorrectly stated that year 2021 in the Chinese calendar corresponds to 616 BC in the ISO calendar. According to the TC39 Intl era and monthCode proposal, the Chinese calendar's epoch year is now ISO year 0, so year 2021 aligns with ISO year 2021. This commit: - Updates the Chinese calendar example comment to reflect the correct epoch year alignment - Corrects the expected output from "-000616-08-12[u-ca=chinese]" to "2021-08-08[u-ca=chinese]" - Adds a new Hebrew calendar example to demonstrate a calendar with a significantly different epoch year (5781 Hebrew = 2021 ISO) Fixes mdn#42565
|
Hey, I'm going to add some more changes to this PR related to the calendar and month code changes. It's going to take some time but you don't have to worry about this. Thanks for sending this in! |
Sounds good, thanks for taking this on! Let me know if you need anything from my side. |
|
Asked for feedback from @ben-allen |
ben-allen
left a comment
There was a problem hiding this comment.
looks good! I've left a few notes -- once this lands I'm going to go through and do another round of era/monthCode updates, since there's been some significant changes in the past couple of months.
|
@ben-allen sorry for the wait; PTAL, thanks! |
|
LGTM! |
* Fix incorrect Chinese calendar example in Temporal.PlainDate.from docs The Chinese calendar example incorrectly stated that year 2021 in the Chinese calendar corresponds to 616 BC in the ISO calendar. According to the TC39 Intl era and monthCode proposal, the Chinese calendar's epoch year is now ISO year 0, so year 2021 aligns with ISO year 2021. This commit: - Updates the Chinese calendar example comment to reflect the correct epoch year alignment - Corrects the expected output from "-000616-08-12[u-ca=chinese]" to "2021-08-08[u-ca=chinese]" - Adds a new Hebrew calendar example to demonstrate a calendar with a significantly different epoch year (5781 Hebrew = 2021 ISO) Fixes mdn#42565 * Fully document eras and monthCodes * Fixes --------- Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
Fixes #42565.
This PR documents the following changes specified by Intl era and monthCode:
hebrew)"bc"and"bce"instead of"gregory"and"gregory-inverse"Intl.supportedValuesOftable