English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

JavaScript setUTCMilliseconds() Method

 JavaScript Date Object

setUTCMilliseconds(According to the world time setting, set the milliseconds in the Date object to (0 ~ 999).

If the number you specify exceeds the expected range (0 to999Then the date information in the Date object will be updated accordingly.

For example, if specified1005Then the second count will increase1And5It represents milliseconds.

World Standard Time (UTC) is the time standard set for world time.

语法:

Syntax:
Example
var d = new Date();42d.setUTCMilliseconds(
0);39document.getElementById('result&#
;).innerHTML = d.getUTCMilliseconds();/Test and see‹

Browser Compatibility

All browsers fully support the setUTCMilliseconds() method:
MethodsetUTCMilliseconds()setUTCMilliseconds()setUTCMilliseconds()setUTCMilliseconds()setUTCMilliseconds()

is

Parameter ValueParameter
Descriptionmillisec9990 to
between the numbers, representing milliseconds.999If the value provided is greater than

Technical Details

Return Value:1970 Year1Month1Milliseconds between 00:00:00 UTC and the update date
JavaScript Version:ECMAScript 1

 JavaScript Date Object