Warning: This Help page is relevant to LibreOffice up to version 6.0.
For updated Help pages, visit https://help.libreoffice.org.

HOUR

From LibreOffice Help
Jump to: navigation, search

HOUR

返回给定时间值的“小时”,表示为 0 到 23 之间的整数。

语法

HOUR(serial_number)

serial_number 是一个要确定其对应小时数的时间值。

示例

=HOUR(NOW()) 返回当前的小时数

=HOUR(C4) 返回 17,如果 C4 = 17:20:00

另请参考以下函数:

YEAR, NOW, MINUTE, MONTH, DAY, WEEKDAY