Date.prototype.getSeconds

Returns the seconds in a date, using local time.

Syntax

getSeconds()

Return value

A number representing the seconds of a Date.