Date.getSeconds

getSeconds – Get the seconds, according to local time (0–59).

Description

Date.getSeconds()

Return values

Integer

Examples

Example #1 – getSeconds example
var date = new Date(); console.log(date.getSeconds()); // Logs the current seconds.

External references