Get to know MDN better
This page was translated from English by the community. Learn more and join the MDN Web Docs community.
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2015년 7월.
Date 인스턴스의 toTimeString() 메서드는 현지 시간대로 해석된 날짜의 시간 부분을 표현하는 문자열을 반환합니다.
없음.
주어진 날짜의 시간 부분을 표현하는 문자열입니다 (형식에 대해서는 설명을 참고하시기 바랍니다). 날짜가 유효하지 않으면 "Invalid Date"을 반환합니다.
Date 인스턴스는 특정 시점을 참조합니다. toTimeString()은 날짜를 현지 시간대로 해석하고 시간 부분의 형식을 영어로 지정합니다. 항상 hh:mm:ss GMT±xxxx (TZ) 형식을 사용합니다.
| hh | 시간, 필요 시 0으로 시작하는 2자리 숫자 |
| mm | 분, 필요 시 0으로 시작하는 2자리 숫자 |
| ss | 초, 필요 시 0으로 시작하는 2자리 숫자 |
| ±xxxx | 현지 시간대의 오프셋. 시간을 나타내는 2자리 숫자와 분을 나타내는 2자리 숫자 (e.g. -0500, +0800) |
| TZ | 시간대의 이름(e.g. PDT, PST) |
예: "04:42:04 GMT+0000 (협정 세계시)".
| ECMAScript® 2027 Language Specification # sec-date.prototype.totimestring |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2025년 2월 11일 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.