JavaScript Reference/Javascript Methods/setUTCMinutes

Материал из Web эксперт
Перейти к: навигация, поиск

"setUTCMinutes()" Example

    
<html>
<body>
<button onclick="var myDate = new Date(); myDate.setUTCMinutes(22); 
alert(myDate);">SETUTCMINUTES</button>
</body>
</html>



"setUTCMinutes()" is applied to

+----------------+--------------------------------------------------------------+
| Applied_To     |Date                                                          |
+----------------+--------------------------------------------------------------+



"setUTCMinutes()" Syntax, Parameters and Note

Note:
Uses UTC time to set the minutes.
    
Syntax:
    
dateName.setUTCMinutes(param1, param2, param3)
Parameters:
    param1   Required; the minutes. Value: 0 to 59.
    param2   Optional; the seconds. Value: 0 to 59.
    param3   Optional; the milliseconds elapsed in the current second. 
             Value: 0 to 999.