Date.hour

Date.hour

Date.hour

功能

读取小时。

语法

参数

无参数。

返回值

类型说明
Int返回 0 到 23 的小时。

示例

注意事项

  • 按本地时区时间读取。