myDate.setSeconds( second, [ ms ] ) in ECMAScript 262

Set the second number in the local timezone.

Arguments

nametypedescription
second Number The new seconds, expressed in<
ms Number [optional] The new milliseconds, expresse
Return Type
Number

Description

If the optional ms parameter is omitted, it is left unchanged in the date object.