Skip to content

Latest commit

 

History

History
14 lines (9 loc) · 186 Bytes

date getSeconds().md

File metadata and controls

14 lines (9 loc) · 186 Bytes

returns the seconds (from 0 to 59) of the specified date and time.

Syntax

Date.getSeconds()

Parameters: none

Example:

const d = new Date();
let n = d.getSeconds();