Returns the UTC date's seconds

Description

getUTCSeconds()
Returns the UTC date's seconds as a number between 0 and 59.

Example


var myDate = new Date();
console.log(myDate.getUTCSeconds());

The code above generates the following result.





















Home »
  Javascript »
    Javascript Reference »




Array
Canvas Context
CSSStyleDeclaration
CSSStyleSheet
Date
Document
Event
Global
History
HTMLElement
Input Element
Location
Math
Number
String
Window