Date.prototype.getUTCHours()
Date 实例的 getUTCHours() 方法根据世界时间返回该日期的小时数。
¥The getUTCHours() method of Date instances returns the hours for this date according to universal time.
Try it
语法
参数
返回值
示例
使用 getUTCHours()
规范
| Specification |
|---|
| ECMAScript Language Specification # sec-date.prototype.getutchours |
浏览器兼容性
BCD tables only load in the browser