Skip to content

Commit c55ee49

Browse files
authored
Editorial: Align FormatDateTimePattern mathematical comparison with editorial conventions (#1080)
1 parent 04087cb commit c55ee49

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

spec/datetimeformat.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1401,9 +1401,9 @@ <h1>
14011401
1. If _partType_ is *"month"*, set _value_ to _value_ + 1.
14021402
1. If _partType_ is *"hour"* and _dateTimeFormat_.[[HourCycle]] is *"h11"* or *"h12"*, then
14031403
1. Set _value_ to _value_ modulo 12.
1404-
1. If _value_ is 0 and _dateTimeFormat_.[[HourCycle]] is *"h12"*, set _value_ to 12.
1404+
1. If _value_ = 0 and _dateTimeFormat_.[[HourCycle]] is *"h12"*, set _value_ to 12.
14051405
1. If _partType_ is *"hour"* and _dateTimeFormat_.[[HourCycle]] is *"h24"*, then
1406-
1. If _value_ is 0, set _value_ to 24.
1406+
1. If _value_ = 0, set _value_ to 24.
14071407
1. If _fieldFormat_ is *"numeric"*, then
14081408
1. Let _formattedValue_ be FormatNumeric(_nf_, _value_).
14091409
1. Else if _fieldFormat_ is *"2-digit"*, then

0 commit comments

Comments
 (0)