Date.prototype.getUTCMilliseconds()
getUTCMilliseconds() 메서드는 표준시에 따라 지정된 날짜의 밀리 초를 반환합니다.
Syntax
dateObj.getUTCMilliseconds()
Return value
0부터 999까지의 정수로, 표준시에 따라 지정된 날짜의 밀리 초를 나타냅니다.
Examples
Using getUTCMilliseconds()
다음 예제에서는 현재 시간의 밀리 초 부분을 밀리 초 변수에 할당합니다.
var today = new Date();
var milliseconds = today.getUTCMilliseconds();
명세
Specification |
---|
ECMAScript Language Specification # sec-date.prototype.getutcmilliseconds |
브라우저 호환성
BCD tables only load in the browser