aboutsummaryrefslogtreecommitdiff
path: root/files/ko/webapi/time_and_clock/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/ko/webapi/time_and_clock/index.html')
-rw-r--r--files/ko/webapi/time_and_clock/index.html29
1 files changed, 0 insertions, 29 deletions
diff --git a/files/ko/webapi/time_and_clock/index.html b/files/ko/webapi/time_and_clock/index.html
deleted file mode 100644
index 808dbc7ffc..0000000000
--- a/files/ko/webapi/time_and_clock/index.html
+++ /dev/null
@@ -1,29 +0,0 @@
----
-title: 시간과 시계
-slug: WebAPI/Time_and_Clock
-translation_of: Archive/B2G_OS/API/Time_and_Clock_API
----
-<p>{{ non-standard_header() }}</p>
-<p>{{ B2GOnlyHeader2('certified') }}</p>
-<h2 id="요약">요약</h2>
-<p>Time/Clock API로 시스템 시간을 쉽게 바꿀 수 있습니다.</p>
-<h2 id="개요">개요</h2>
-<p><span style="line-height: inherit;">이 API는 {{domxref("window.navigator.mozTime","navigator.mozTime")}} </span><span style="line-height: inherit;">을 통해 리턴되는, {{domxref("MozTimeManager")}} </span><span style="line-height: inherit;">객체를 통해 접근할 수 있습니다. 해당 객체는 하나의 {{domxref("MozTimeManager.set()","set()")}} </span><span style="line-height: inherit;">메서드를 가지고 있습니다.</span></p>
-<p><span style="line-height: inherit;">{{domxref("MozTimeManager.set()","set()")}} 메서드는 시스템 시간을 변경하는데 이용됩니다. 파라미터로는 숫자(=Number) 객체 또는 Date 객체가 사용됩니다. 만약 숫자 객체가 사용된다면 해당 숫자는 UTC 1970년 1월 1일 부터의 밀리초를 의미합니다.</span></p>
-<p>시간이 변경될 때마다 이벤트가 발생하게 됩니다. 이 이벤트는 window 객체에서 {{domxref("EventTarget.addEventListener","addEventListener")}}  메서드 를 통해(이벤트명은  {{event("moztimechange")}}) 처리하거나, 또는 {{domxref("window.onmoztimechange")}} 속성에 이벤트 핸들러를 연결함으로써 처리할 수 있습니다.</p>
-<div class="note">
- <p><strong>주:</strong> 기기의 시간대는 <a href="https://developer.mozilla.org/en-US/docs/WebAPI/Settings" title="https://developer.mozilla.org/en-US/docs/WebAPI/Settings">Settings API</a>로 바꿔야 합니다.</p>
-</div>
-<h2 id="예시">예시</h2>
-<pre class="brush: js">function setTime(time) {
- navigator.mozTime.set(time);
-}
-
-window.addEventListener('moztimechange', function () {
- console.log('시간이 바뀜');
-});
-
-setTime(new Date());
-</pre>
-<h2 id="표준">표준</h2>
-<p>어느 표준에도 들어있지 않음</p>