Day.js 中文文档

当前版本 v1.11

更多文档

小时

获取或设置小时。

接受从 0 到 23 的数字。如果超出范围,它将冒泡到当天。

dayjs().hour() // gets current hour
newDate = dayjs().hour(12) // returns new dayjs object

Day.js 中文文档 - 粤ICP备14034220号-1