Date.prototype.getUTCMilliseconds()
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
o método getUTCMilliseconds()
retorna os milisegundos na data especificada, de acordo com o horário universal (UTC).
Sintaxe
dateObj.getUTCMilliseconds()
Valor de retorno
Um número inteiro, entre 0 e 999, representando os milisegundos na data especificada de acordo com o horário universal (UTC).
Exemplos
Usando getUTCMilliseconds()
O exemplo a seguir associa a parte dos milissegundos do tempo atual à variável milissegundos
.
js
var hoje = new Date();
var milissegundos = today.getUTCMilliseconds();
Especificações
Specification |
---|
ECMAScript® 2025 Language Specification # sec-date.prototype.getutcmilliseconds |
Compatibilidade com navegadores
Report problems with this compatibility data on GitHubdesktop | mobile | server | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
getUTCMilliseconds |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.