Get to know MDN better
このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2015年7月.
getMilliseconds() は Date インスタンスのメソッドで、地方時に基づき、指定された日時の「ミリ秒」を返します。
なし。
地方時に基づき、指定された日時の「ミリ秒」を表す 0 から 999 までの間の数値です。日時が無効な場合は NaN を返します。
変数 milliseconds には、 Date オブジェクト xmas95 に基づいて、 0 という値が入ります。ここにはミリ秒の成分が指定されていないので、既定で 0 になります。
| ECMAScript® 2027 Language Specification # sec-date.prototype.getmilliseconds |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2025年6月18日 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.