Skip to content

Commit

Permalink
Fix more instances of hardcoded 1972 in the spec
Browse files Browse the repository at this point in the history
For consistency with the changes in the previous commit.
  • Loading branch information
ptomato committed May 29, 2020
1 parent fa3ec46 commit fbb085c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions spec/monthday.html
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,8 @@ <h1>ValidateMonthDay ( _month_, _day_ )</h1>
1. Assert: _month_ and _day_ are integer Number values.
1. If _month_ &lt; 1 or _month_ &gt; 12, then
1. Return *false*.
1. Let _maxDay_ be ! DaysInMonth(1972, _m_).
1. Let _leapYear_ be the first leap year after the Unix epoch (1972).
1. Let _maxDay_ be ! DaysInMonth(_leapYear_, _m_).
1. If _d_ &lt; 1 or _d_ &gt; _maxDay_, then
1. Return *false*.
1. Return *true*.
Expand All @@ -366,7 +367,8 @@ <h1>RejectMonthDay ( _month_, _day_ )</h1>
<h1>ConstrainMonthDay ( _month_, _day_ )</h1>
<emu-alg>
1. Assert: _month_ and _day_ are integer Number values.
1. Let _result_ be ! ConstrainDate(1972, _month_, _day_).
1. Let _leapYear_ be the first leap year after the Unix epoch (1972).
1. Let _result_ be ! ConstrainDate(_leapYear_, _month_, _day_).
1. Return the new Record {
[[Month]]: _result_.[[Month]],
[[Day]]: _result_.[[Day]]
Expand All @@ -377,7 +379,8 @@ <h1>ConstrainMonthDay ( _month_, _day_ )</h1>
<h1>BalanceMonthDay ( _month_, _day_ )</h1>
<emu-alg>
1. Assert: _month_ and _day_ are integer Number values.
1. Let _result_ be ! BalanceDate(1972, _month_, _day_).
1. Let _leapYear_ be the first leap year after the Unix epoch (1972).
1. Let _result_ be ! BalanceDate(_leapYear_, _month_, _day_).
1. Return the new Record {
[[Month]]: _result_.[[Month]],
[[Day]]: _result_.[[Day]]
Expand Down

0 comments on commit fbb085c

Please sign in to comment.