Microsoft® JScript setSeconds Method |
Language Reference |
Modifies the seconds value stored in the Date object.
dateObj.setSeconds( numSeconds )
The numSeconds argument is a numeric value equal to the desired minutes value.
If the value of numSeconds is greater than 59 or is a negative number, the stored minute, hour, and possibly other values are modified accordingly. For example, if the stored date is "Jan 5, 1996 00:00:00" and setSeconds(150) is called, the date is changed to "Jan 5, 1996 00:02:30."