JavaScript setUTCMilliseconds() Method
JavaScript Date Object
Definition and Usage
The setUTCMilliseconds() method sets the milliseconds (from 0 to 999), according to
universal time.
Note: This method is always used in conjunction with a Date object.
Syntax
| Date.setUTCMilliseconds(millisec) |
| Parameter |
Description |
| millisec |
Required. An integer between 0 and 999 representing the milliseconds |
Browser Support

The setUTCMilliseconds() method is supported in all major browsers.
Tips and Notes
Tip: The Universal Coordinated Time (UTC) is the time set by the World Time Standard.
Example
Example
Set the UTC milliseconds to 192:
<script type="text/javascript">
var d = new Date();
d.setUTCMilliseconds(192);
document.write(d.getUTCMilliseconds());
</script>
|
The output of the code above will be:
Try it yourself »
|
JavaScript Date Object
|