aboutsummaryrefslogtreecommitdiff
path: root/files/ko/web/javascript/reference/global_objects/date/setmilliseconds/index.html
blob: 0bcc5e6bf09a6d29e0acc97707e95d9e9cc82ba1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
---
title: Date.prototype.setMilliseconds()
slug: Web/JavaScript/Reference/Global_Objects/Date/setMilliseconds
translation_of: Web/JavaScript/Reference/Global_Objects/Date/setMilliseconds
browser-compat: javascript.builtins.Date.setMilliseconds
---
<div>{{JSRef}}</div>

<p>setMilliseconds () 메서드는 현지 시간에 따라 지정된 날짜의 밀리 초를 설정합니다.</p>

<h2 id="Syntax">Syntax</h2>

<pre class="syntaxbox"><code><var>dateObj</var>.setMilliseconds(<var>millisecondsValue</var>)</code></pre>

<h3 id="Parameters">Parameters</h3>

<dl>
 <dt><code>millisecondsValue</code></dt>
 <dd>밀리 초를 나타내는 0에서 999 사이의 숫자입니다.</dd>
</dl>

<h3 id="Return_value">Return value</h3>

<p>1970 년 1 월 1 일 00:00:00 UTC와 업데이트 된 날짜 사이의 밀리 초 숫자입니다.</p>

<h2 id="Description">Description</h2>

<p>예상되는 범위를 벗어난 숫자를 지정하면 {{jsxref ( "Date")}} 객체의 날짜 정보가 그에 따라 업데이트됩니다. 예를 들어, 1005를 지정하면 초 수가 1 씩 증가하고 5는 밀리 초 단위로 사용됩니다.</p>

<h2 id="Examples">Examples</h2>

<h3 id="Using_setMilliseconds()">Using <code>setMilliseconds()</code></h3>

<pre class="brush: js">var theBigDay = new Date();
theBigDay.setMilliseconds(100);
</pre>

<h2 id="specifications">명세</h2>

<p>{{Specifications}}</p>

<h2 id="browser_compatibility">브라우저 호환성</h2>

<p>{{Compat}}</p>

<h2 id="See_also">See also</h2>

<ul>
 <li>{{jsxref("Date.prototype.getMilliseconds()")}}</li>
 <li>{{jsxref("Date.prototype.setUTCMilliseconds()")}}</li>
</ul>