Enable JavaScript in the browser to display LibreOfficeDev Help pages.

HOUR

指定の時刻値の時を返します。時は、0 から 23 までの整数として返されます。

note

This function is part of the Open Document Format for Office Applications (OpenDocument) standard Version 1.2. (ISO/IEC 26300:2-2015)


構文

HOUR(数値)

数値 は小数で表されるシリアル値で、これに対応する時間が返されます。

note

HOUR() returns the integer part of the hour.


=HOUR(NOW()) は、現在の時間を返します。

C4 の内容が 17:20:00 の場合、=HOUR(C4) は 17 を返します。