From 218934fa2ed1c702a6d3923d2aa2cc6b43c48684 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:43:23 -0500 Subject: initial commit --- .../global_objects/date/getmilliseconds/index.html | 61 ++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 files/uk/web/javascript/reference/global_objects/date/getmilliseconds/index.html (limited to 'files/uk/web/javascript/reference/global_objects/date/getmilliseconds') diff --git a/files/uk/web/javascript/reference/global_objects/date/getmilliseconds/index.html b/files/uk/web/javascript/reference/global_objects/date/getmilliseconds/index.html new file mode 100644 index 0000000000..bef2c69b6d --- /dev/null +++ b/files/uk/web/javascript/reference/global_objects/date/getmilliseconds/index.html @@ -0,0 +1,61 @@ +--- +title: Date.prototype.getMilliseconds() +slug: Web/JavaScript/Reference/Global_Objects/Date/getMilliseconds +tags: + - Date + - JavaScript + - Довідка + - метод +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