Skip to content

Commit bc49018

Browse files
committed
Editorial: Clarify note about M00L
Clarify that this month code doesn't exist in any currently supported calendars, with "theoretically".
1 parent ddd0551 commit bc49018

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4578,7 +4578,7 @@ <h1><span class="secnum">4.1.8</span> Calendar Date Records</h1>
45784578
<td>
45794579
The month code of the date's month. The month code for a month that is not a leap month and whose 1-based ordinal position in a common year of the calendar (i.e., a year that is not a leap year) is <var>n</var> should be the <emu-xref href="#string-concatenation"><a href="https://tc39.es/ecma262/#string-concatenation">string-concatenation</a></emu-xref> of <emu-val>"M"</emu-val> and <emu-xref aoid="ToZeroPaddedDecimalString"><a href="https://tc39.es/ecma262/#sec-tozeropaddeddecimalstring">ToZeroPaddedDecimalString</a></emu-xref>(<var>n</var>, 2), and the month code for a month that is a leap month inserted after a month whose 1-based ordinal position in a common year of the calendar is <var>p</var> should be the <emu-xref href="#string-concatenation"><a href="https://tc39.es/ecma262/#string-concatenation">string-concatenation</a></emu-xref> of <emu-val>"M"</emu-val>, <emu-xref aoid="ToZeroPaddedDecimalString"><a href="https://tc39.es/ecma262/#sec-tozeropaddeddecimalstring">ToZeroPaddedDecimalString</a></emu-xref>(<var>p</var>, 2), and <emu-val>"L"</emu-val>.
45804580
<emu-note><span class="note">Note 4</span><div class="note-contents">
4581-
For example, in the Hebrew calendar, the month code of Adar (and Adar II, in leap years) is <emu-val>"M06"</emu-val> and the month code of Adar I (the leap month inserted before Adar II) is <emu-val>"M05L"</emu-val>. In a calendar with a leap month at the start of some years, the month code of that month would be <emu-val>"M00L"</emu-val>.
4581+
For example, in the Hebrew calendar, the month code of Adar (and Adar II, in leap years) is <emu-val>"M06"</emu-val> and the month code of Adar I (the leap month inserted before Adar II) is <emu-val>"M05L"</emu-val>. Theoretically, in a calendar with a leap month at the start of some years, the month code of that month would be <emu-val>"M00L"</emu-val>.
45824582
</div></emu-note>
45834583
</td>
45844584
</tr>

spec.emu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,7 @@ contributors: Google, Ecma International
720720
<td>
721721
The month code of the date's month. The month code for a month that is not a leap month and whose 1-based ordinal position in a common year of the calendar (i.e., a year that is not a leap year) is _n_ should be the string-concatenation of *"M"* and ToZeroPaddedDecimalString(_n_, 2), and the month code for a month that is a leap month inserted after a month whose 1-based ordinal position in a common year of the calendar is _p_ should be the string-concatenation of *"M"*, ToZeroPaddedDecimalString(_p_, 2), and *"L"*.
722722
<emu-note>
723-
For example, in the Hebrew calendar, the month code of Adar (and Adar II, in leap years) is *"M06"* and the month code of Adar I (the leap month inserted before Adar II) is *"M05L"*. In a calendar with a leap month at the start of some years, the month code of that month would be *"M00L"*.
723+
For example, in the Hebrew calendar, the month code of Adar (and Adar II, in leap years) is *"M06"* and the month code of Adar I (the leap month inserted before Adar II) is *"M05L"*. Theoretically, in a calendar with a leap month at the start of some years, the month code of that month would be *"M00L"*.
724724
</emu-note>
725725
</td>
726726
</tr>

0 commit comments

Comments
 (0)