From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- .../global_objects/date/getmilliseconds/index.html | 64 ++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 files/ja/web/javascript/reference/global_objects/date/getmilliseconds/index.html (limited to 'files/ja/web/javascript/reference/global_objects/date/getmilliseconds/index.html') diff --git a/files/ja/web/javascript/reference/global_objects/date/getmilliseconds/index.html b/files/ja/web/javascript/reference/global_objects/date/getmilliseconds/index.html new file mode 100644 index 0000000000..91b632f753 --- /dev/null +++ b/files/ja/web/javascript/reference/global_objects/date/getmilliseconds/index.html @@ -0,0 +1,64 @@ +--- +title: Date.prototype.getMilliseconds() +slug: Web/JavaScript/Reference/Global_Objects/Date/getMilliseconds +tags: + - Date + - JavaScript + - Method + - Prototype + - Reference +translation_of: Web/JavaScript/Reference/Global_Objects/Date/getMilliseconds +--- +
{{JSRef}}
+ +

getMilliseconds() メソッドは、ローカル時間に基づき、指定された日時の「ミリ秒」を返します。

+ +
{{EmbedInteractiveExample("pages/js/date-getmilliseconds.html","shorter")}}
+ + + +

構文

+ +
dateObj.getMilliseconds()
+ +

返値

+ +

ローカル時間に基づき、指定された日時の「ミリ秒」を表す 0 から 999 までの間の数値。

+ +

+ +

getMilliseconds() の使用

+ +

次の例は、現在時刻のミリ秒部を変数 milliseconds に代入します。

+ +
var today = new Date();
+var milliseconds = today.getMilliseconds();
+
+ +

仕様書

+ + + + + + + + + + + + +
仕様書
{{SpecName('ESDraft', '#sec-date.prototype.getmilliseconds', 'Date.prototype.getMilliseconds')}}
+ +

ブラウザーの互換性

+ + + +

{{Compat("javascript.builtins.Date.getMilliseconds")}}

+ +

関連情報

+ + -- cgit v1.2.3-54-g00ecf