Sets seconds portion of time.

Syntax

<oRef>.setSeconds(<expN>)

<oRef>

The Date object whose seconds you want to change.

<expN>

The number of seconds, normally between 0 and 59.

Property of

Date

Description

The setSeconds( ) method sets the seconds portion of "time" for the Date object.