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/getUTCHours below:

Date.prototype.getUTCHours() - JavaScript | MDN

Date.prototype.getUTCHours()

Baseline Widely available

getUTCHours () 메서드는 표준시에 따라 지정된 날짜의 시간을 반환합니다.

Syntax

js

dateObj.getUTCHours();
Return value

0부터 23까지의 정수로, 표준시에 따라 지정된 날짜의 시간을 나타냅니다.

Examples Using getUTCHours()

다음 예제에서는 현재 시간의 시간 부분을 시간 변수로 지정합니다.

js

var today = new Date();
var hours = today.getUTCHours();
명세 브라우저 호환성 See also

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