JavaScript Reference/Javascript Methods/setUTCMilliseconds

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

"setUTCMilliseconds()" Example

    
<html>
<body>
<button onclick="var myDate = new Date(); myDate.setUTCMilliseconds(20); alert(myDate);">SETUTCMILLISECONDS</button>
</body>
</html>



"setUTCMilliseconds()" is applied to

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



"setUTCMilliseconds()" Syntax, Parameters and Note

Note:
Uses UTC time to set milliseconds elapsed in the Date object"s current second.
    
Syntax:
    
dateName.setUTCMilliseconds(param1)
Parameters:
    param1   Required; the number of milliseconds. Value: 0 to 999.