Difference between revisions of "Documentation/How Tos/Calc: MINUTE function"

From Apache OpenOffice Wiki
Jump to: navigation, search
(Initial content)
 
Line 3: Line 3:
 
== MINUTE ==
 
== MINUTE ==
 
Returns the minutes of a given time.  
 
Returns the minutes of a given time.  
 
  
 
=== Syntax: ===
 
=== Syntax: ===
Line 10: Line 9:
  
 
: <tt>'''time'''</tt> may be text or a date-time serial number.
 
: <tt>'''time'''</tt> may be text or a date-time serial number.
 
  
 
=== Example: ===
 
=== Example: ===
<tt>'''MINUTE("6 January 2008 21:30:15")'''</tt>
+
<tt>'''MINUTE("2008/01/06 21:30:15")'''</tt>
 
: returns <tt>'''30'''</tt>.
 
: returns <tt>'''30'''</tt>.
  
 
<tt>'''MINUTE(A1)'''</tt>
 
<tt>'''MINUTE(A1)'''</tt>
 
: where cell A1 contains the time <tt>'''9:25:10'''</tt> as a date-time serial number, returns <tt>'''25'''</tt>.
 
: where cell A1 contains the time <tt>'''9:25:10'''</tt> as a date-time serial number, returns <tt>'''25'''</tt>.
 
  
 
=== See also: ===
 
=== See also: ===

Revision as of 13:01, 18 January 2008


MINUTE

Returns the minutes of a given time.

Syntax:

MINUTE(time)

returns the minutes of time as a number, 0 - 59.
time may be text or a date-time serial number.

Example:

MINUTE("2008/01/06 21:30:15")

returns 30.

MINUTE(A1)

where cell A1 contains the time 9:25:10 as a date-time serial number, returns 25.

See also:

YEAR, MONTH, DAY, WEEKDAY, HOUR, SECOND

Date & Time functions

Date & Time overview

Personal tools