getUTCSeconds()
Returns the UTC date's seconds as a
number between 0 and 59.
UTC time is the same as GMT time.
getUTCSeconds() |
Yes | Yes | Yes | Yes | Yes |
dateObject.getUTCSeconds();
None.
return a number, from 0-59, representing the seconds.
var myDate = new Date();
console.log(myDate.getUTCSeconds());
The code above generates the following result.