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

getMinutes() 메서드는 Date 인스턴스의 분을 현지 시간 기준으로 반환합니다.

+ +
{{EmbedInteractiveExample("pages/js/date-getminutes.html")}}
+ + + +

구문

+ +
dateObj.getMinutes()
+ +

반환 값

+ +

주어진 날짜의 현지 시간 기준 분을 나타내는 0에서 59 사이의 정수.

+ +

예제

+ +

getMinutes() 사용하기

+ +

다음 예제는 {{jsxref("Date")}} 객체 Xmas95의 분을 사용해 변수 minutes에 15를 할당합니다.

+ +
var Xmas95 = new Date('December 25, 1995 23:15:30');
+var minutes = Xmas95.getMinutes();
+
+console.log(minutes); // 15
+
+ +

명세

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName('ES1')}}{{Spec2('ES1')}}Initial definition. Implemented in JavaScript 1.0.
{{SpecName('ES5.1', '#sec-15.9.5.20', 'Date.prototype.getMinutes')}}{{Spec2('ES5.1')}}
{{SpecName('ES6', '#sec-date.prototype.getminutes', 'Date.prototype.getMinutes')}}{{Spec2('ES6')}}
{{SpecName('ESDraft', '#sec-date.prototype.getminutes', 'Date.prototype.getMinutes')}}{{Spec2('ESDraft')}}
+ +

브라우저 호환성

+ + + +

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

+ +

같이 보기

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