A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.cdn.mozilla.net/ko/docs/Web/JavaScript/Reference/Global_Objects/Date/getMinutes below:

Date.prototype.getMinutes() - JavaScript | MDN

Date.prototype.getMinutes()

Baseline Widely available

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

시도해 보기
const birthday = new Date("March 13, 08 04:20");

console.log(birthday.getMinutes());
// Expected output: 20
구문 반환 값

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

예제 getMinutes() 사용하기

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

var Xmas95 = new Date("December 25, 1995 23:15:30");
var minutes = Xmas95.getMinutes();

console.log(minutes); // 15
명세 브라우저 호환성 같이 보기

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4