Difference between revisions of "User:Syranzi/Documentation/How Tos/Calc: HOUR function"

From Apache OpenOffice Wiki
Jump to: navigation, search
(http://wiki.services.openoffice.org/wiki/Documentation/How_Tos/Calc:_HOUR_function 日本語訳、作業中)
 
Line 12: Line 12:
 
<tt>'''HOUR(時刻)'''</tt>
 
<tt>'''HOUR(時刻)'''</tt>
 
: <tt>'''「時刻」'''</tt>の時を数字 (<tt>'''0'''</tt> ~ <tt>'''23'''</tt>) として返します。
 
: <tt>'''「時刻」'''</tt>の時を数字 (<tt>'''0'''</tt> ~ <tt>'''23'''</tt>) として返します。
: <tt>'''「時刻」'''</tt>は文字、または日付・時刻の連番です。
+
: <tt>'''「時刻」'''</tt>は文字、または日付・時刻のシリアル値です。
  
 
=== Example: ===
 
=== Example: ===

Revision as of 16:11, 22 January 2011

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(時刻)

「時刻」の時を数字 (023) として返します。
「時刻」は文字、または日付・時刻のシリアル値です。

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」を返します。

Template:Documentation/SeeAlso

Personal tools