getUTCSeconds()  Date  instance method JS Home  <<  JS Reference  <<  Date  <<  getUTCSeconds()

Description

Returns the UTC second of the minute (0-59) for the specified date.

Syntax

Signature Description
aDate.getUTCSeconds()Returns the UTC second of the minute (0-59) for the specified date.

Parameters

None.

Examples

The code below shows an example of the getUTCSeconds() method of Date.



// Create a Date instance for the current date and time.
var todaysDate = new Date();
alert(todaysDate);

// Get UTC second of the minute.
alert(todaysDate.getUTCSeconds() + ' = UTC Second of the minute');

Press the button below to action the above code:

Related Tutorials

JavaScript Intermediate Tutorials - Lesson 2 - Dates and Times