Contents

# HOUR

傳回指定時間值的小時。 小時會以 0 和 23 之間的整數傳回。

### 語法

HOUR(serial_number)

serial_number 是一個作為時間值的十進位數字，源自小時數計算。

HOUR() returns the integer part of the hour.

### 範例

=HOUR(NOW()) 傳回目前的小時

若 C4 的內容 = 17:20:00，則 =HOUR(C4) 會傳回 17。

#### Technical information

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

相關主題

HOUR wiki page.

Date & Time Functions

DATE

[text/scalc/01/func_datedif.xhp#datedif not found].

DATEVALUE

DAY

DAYS

DAYS360

DAYSINMONTH

DAYSINYEAR

EASTERSUNDAY

EDATE

EOMONTH

HOUR

ISLEAPYEAR

[text/scalc/01/func_isoweeknum.xhp#isoweeknum not found].

MINUTE

MONTH

MONTHS

NETWORKDAYS

NETWORKDAYS.INTL

NOW

SECOND

TIME

TIMEVALUE

TODAY

WEEKDAY

WEEKNUM

WEEKNUM_ADD

[text/scalc/01/func_weeknum_ooo.xhp#weeknum_ooo not found].

WEEKS

WEEKSINYEAR

WORKDAY

WORKDAY.INTL

YEAR

YEARFRAC

YEARS

Please support us!