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

From Apache OpenOffice Wiki
Jump to: navigation, search
(Initial content)
 
Line 3: Line 3:
 
== SECOND ==
 
== SECOND ==
 
Returns the seconds of a given time.  
 
Returns the seconds 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>'''SECOND("6 January 2008 21:30:15")'''</tt>
+
<tt>'''SECOND("2008/01/06 21:30:15")'''</tt>
 
: returns <tt>'''15'''</tt>.
 
: returns <tt>'''15'''</tt>.
  
 
<tt>'''SECOND(A1)'''</tt>
 
<tt>'''SECOND(A1)'''</tt>
 
: where cell A1 contains the time <tt>'''9:25:10'''</tt> as a date-time serial number, returns <tt>'''10'''</tt>.
 
: where cell A1 contains the time <tt>'''9:25:10'''</tt> as a date-time serial number, returns <tt>'''10'''</tt>.
 
  
 
=== See also: ===
 
=== See also: ===

Revision as of 13:02, 18 January 2008


SECOND

Returns the seconds of a given time.

Syntax:

SECOND(time)

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

Example:

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

returns 15.

SECOND(A1)

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

See also:

YEAR, MONTH, DAY, WEEKDAY, HOUR, MINUTE

Date & Time functions

Date & Time overview

Personal tools