Copyright © tutorialspoint.com

Javascript Date getUTCMinutes() Method

previous next

Advertisements


Description:

Javascript date getUTCMinutes() method returns the minutes in the specified date according to universal time. The value returned by getUTCMinutes is an integer between 0 and 59.

Syntax:

Date.getUTCMinutes()

Here is the detail of parameters:

Return Value:

Returns the minutes in the specified date according to universal time.

Example:

The following example prints the minutes portion of the current time to the variable hrs.

<html>
<head>
<title>JavaScript getUTCMinutes Method</title>
</head>
<body>
<script type="text/javascript">
   var dt = new Date();
   document.write("getUTCMinutes() : " + dt.getUTCMinutes() ); 
</script>
</body>
</html>

This will produce following result for Indian time zone:

getUTCMinutes() : 32 

To understand it in better way you can Try it yourself.


previous next

Copyright © tutorialspoint.com