Skip to content

Commit 82fa576

Browse files
ptomatoMs2ger
authored andcommitted
Editorial: Structured header for PadISOYear
While looking for "is an integer" assertions (#1467), I decided to remove this one by converting the AO to have a structured header.
1 parent 157c9a0 commit 82fa576

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

spec/plaindate.html

+10-3
Original file line numberDiff line numberDiff line change
@@ -969,10 +969,17 @@ <h1>BalanceISODate (
969969
</emu-alg>
970970
</emu-clause>
971971

972-
<emu-clause id="sec-temporal-padisoyear" aoid="PadISOYear">
973-
<h1>PadISOYear ( _y_ )</h1>
972+
<emu-clause id="sec-temporal-padisoyear" type="abstract operation">
973+
<h1>
974+
PadISOYear (
975+
_y_: an integer,
976+
): a String
977+
</h1>
978+
<dl class="header">
979+
<dt>description</dt>
980+
<dd>It returns a String representation of _y_ suitable for inclusion in an ISO 8601 string, either in 4-digit format or 6-digit format with sign.</dd>
981+
</dl>
974982
<emu-alg>
975-
1. Assert: _y_ is an integer.
976983
1. If _y_ &ge; 0 and _y_ &le; 9999, then
977984
1. Return ToZeroPaddedDecimalString(_y_, 4).
978985
1. If _y_ &gt; 0, let _yearSign_ be *"+"*; otherwise, let _yearSign_ be *"-"*.

0 commit comments

Comments
 (0)