Skip to content

Commit 93e1458

Browse files
ptomatoMs2ger
authored andcommitted
Editorial: Move AvailableCalendars from 402 into 262
Closes: tc39#2907
1 parent 9e9d863 commit 93e1458

File tree

2 files changed

+25
-8
lines changed

2 files changed

+25
-8
lines changed

spec/calendar.html

+2-8
Original file line numberDiff line numberDiff line change
@@ -39,21 +39,15 @@ <h1>
3939
</emu-alg>
4040
</emu-clause>
4141

42-
<emu-clause id="sec-temporal-availablecalendars" type="implementation-defined abstract operation">
42+
<emu-clause id="sec-availablecalendars" type="implementation-defined abstract operation">
4343
<h1>
4444
AvailableCalendars (
4545
): a List of Strings
4646
</h1>
4747
<dl class="header">
4848
<dt>description</dt>
49-
<dd>Each element in the returned List represents a calendar type supported by the implementation.</dd>
49+
<dd>The returned List is sorted according to lexicographic code unit order, and contains unique calendar types in canonical form (<emu-xref href="#sec-calendar-types"></emu-xref>) identifying the calendars for which the implementation provides the functionality of Intl.DateTimeFormat objects, including their aliases (e.g., either both or neither of *"islamicc"* and *"islamic-civil"*). The List must include *"iso8601"*.</dd>
5050
</dl>
51-
<emu-alg>
52-
1. Let _calendars_ be the List of String values representing calendar types supported by the implementation, sorted according to lexicographic code unit order.
53-
1. Assert: _calendars_ contains *"iso8601"*.
54-
1. [declared="S"] Assert: _calendars_ does not contain any element _S_ for which the ASCII-lowercase of _S_ is not _S_.
55-
1. Assert: _calendars_ does not contain any element that does not identify a calendar type in the <a href="https://cldr.unicode.org/">Unicode Common Locale Data Repository (CLDR)</a>.
56-
</emu-alg>
5751
</emu-clause>
5852
</emu-clause>
5953

spec/intl.html

+23
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,29 @@ <h1>
214214
</emu-clause>
215215
</del>
216216

217+
<del class="block">
218+
<emu-clause id="sec-calendar-types-deleted">
219+
<h1>Calendar Types</h1>
220+
221+
<p>
222+
This specification identifies calendars using a calendar type as defined by <a href="https://unicode.org/reports/tr35/tr35-dates.html#Calendar_Elements">Unicode Technical Standard #35 Part 4 Dates, Section 2 Calendar Elements</a>. Their canonical form is a string containing only Unicode Basic Latin lowercase letters (U+0061 LATIN SMALL LETTER A through U+007A LATIN SMALL LETTER Z) with zero or more medial hyphens (U+002D HYPHEN-MINUS).
223+
</p>
224+
225+
<emu-clause id="sec-availablecalendars-deleted" type="abstract operation">
226+
<h1>
227+
AvailableCalendars (
228+
): a List of Strings
229+
</h1>
230+
<dl class="header">
231+
<dt>description</dt>
232+
<dd>The returned List is sorted according to lexicographic code unit order, and contains unique calendar types in canonical form (<emu-xref href="#sec-calendar-types"></emu-xref>) identifying the calendars for which the implementation provides the functionality of Intl.DateTimeFormat objects, including their aliases (e.g., either both or neither of *"islamicc"* and *"islamic-civil"*). The List must include *"iso8601"*.</dd>
233+
<dt>redefinition</dt>
234+
<dd>true</dd>
235+
</dl>
236+
</emu-clause>
237+
</emu-clause>
238+
</del>
239+
217240
<emu-clause id="intl-object">
218241
<h1>The Intl Object</h1>
219242
<p>[...]</p>

0 commit comments

Comments
 (0)