Difference between revisions of "User:Syranzi/Documentation/How Tos/Calc: HOUR function"
From Apache OpenOffice Wiki
(→構文:) |
(→例:) |
||
Line 24: | Line 24: | ||
: 21 時にあたる<tt>'''「21」'''</tt>を返します。 | : 21 時にあたる<tt>'''「21」'''</tt>を返します。 | ||
<tt>'''HOUR(A1)'''</tt> | <tt>'''HOUR(A1)'''</tt> | ||
− | : セル A1 が時刻<tt>'''「9 時 25 分 10 秒 (9:25:10)」'''</tt> | + | : セル A1 が時刻<tt>'''「9 時 25 分 10 秒 (9:25:10)」'''</tt>を日付・時刻のシリアル値として含む場合、<tt>'''「9」'''</tt>を返します。 |
{{Documentation/SeeAlso|関連項目 | {{Documentation/SeeAlso|関連項目 |
Revision as of 16:11, 22 January 2011
Contents
HOUR
HOUR
Returns the hour of a given time. 指定された時刻の時を返します。
Syntax:
構文:
HOUR(time)
- returns the hour of time as a number, 0 - 23.
- time may be text or a date-time serial number.
HOUR(時刻)
- 「時刻」の時を数字 (0 ~ 23) として返します。
- 「時刻」は文字、または日付・時刻のシリアル値です。
Example:
例:
HOUR("2008-01-06 21:30:15")
- returns 21.
HOUR(A1)
- where cell A1 contains the time 9:25:10 as a date-time serial number, returns 9.
HOUR("2008-01-06 21:30:15")
- 21 時にあたる「21」を返します。
HOUR(A1)
- セル A1 が時刻「9 時 25 分 10 秒 (9:25:10)」を日付・時刻のシリアル値として含む場合、「9」を返します。