2.1.114 [ECMA-262-1999] Section 15.9.5.31, Date.prototype.setUTCSeconds (sec [, ms ] )

V0174:

If ms is not specified, this function behaves as if ms were specified with the value getUTCMilliseconds( ).

(The bulleted step is added before step 1)

  • If the argument sec is not present, throw a TypeError exception.

  1. Let t be this time value.

  2. Call ToNumber(sec).

  3. If ms is not specified, compute msFromTime(t); otherwise, call ToNumber(ms).

  4. Compute MakeTime(HourFromTime(t), MinFromTime(t), Result(2), Result(3)).

  5. Compute MakeDate(Day(t), Result(4)).

  6. Set the [[Value]] property of the this value to TimeClip(Result(5)).

  7. Return the value of the [[Value]] property of the this value.

The length property of the setUTCSeconds method is 2.