Baseline Widely available
getUTCHours()
æ¹æ³ä»¥ä¸çæ¶ä¸ºæ åï¼è¿åä¸ä¸ªæå®çæ¥æå¯¹è±¡çå°æ¶æ°ã
const date1 = new Date("December 31, 1975, 23:15:30 GMT+11:00");
const date2 = new Date("December 31, 1975, 23:15:30 GMT-11:00");
console.log(date1.getUTCHours());
// Expected output: 12
console.log(date2.getUTCHours());
// Expected output: 10
è¯æ³ åæ°
æ ã
è¿åå¼getUTCHours()
è¿åä¸ä¸ª 0 å° 23 çæ´æ°ã
getUTCHours()
æ¹æ³
ä¸ä¾å°å½åæ¶é´çå°æ¶é¨åèµå¼ç»åé hours
ã
var today = new Date();
var hours = today.getUTCHours();
è§è æµè§å¨å
¼å®¹æ§ åè§
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