Microsoft® JScript™
setSeconds Method
Language Reference |
Version 1 |

See Also                  Applies To


Description

Modifies the seconds value stored in the Date object.

Syntax
dateObj.setSeconds(numSeconds)

The numSeconds argument is a numeric value equal to the desired minutes value.

Remarks

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."


© 1997 Microsoft Corporation. All rights reserved.