Returns the seconds portion of a date object.

Syntax

<oRef>.getSeconds( )

<oRef>

The date object whose seconds you want to return.

Property of

Date

Description

The getSeconds( ) method returns the seconds portion of "time" from a Date object: an integer from 0 to 59.