Date.getSeconds

Returns the seconds in the current time according to local time.

Method of Date

Syntax

getSeconds()

Parameters

None

Description

The value returned by getSeconds is an integer between 0 and 59.

Examples

The second statement below assigns the value 30 to the variable secs, based on the value of the Date object Xmas95.

See also

Date.getUTCSeconds, Date.setSeconds

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.