Calc SECOND function

Returns the seconds of a date represented by a serial number. The seconds is given as an integer, ranging from 0 to 59.

Help CentreFunctions & Formulas

For a full list of available calculation functions, please read What calculation functions are supported.

This article describes the formula syntax and usage of the SECOND function.


Description

Returns the seconds of a date represented by a serial number. The seconds is given as an integer, ranging from 0 to 59.


Syntax

SECOND(serial_number)


The SECOND function syntax has the following arguments:
  • Serial_number Required. The date of the seconds you are trying to find. Dates should be entered by using the DATE function, or as results of other formulas or functions. For example, use DATE(2008,5,23) for the 23rd day of May, 2008. Problems can occur if dates are entered as text.

Remarks

  • Values returned by the YEAR, QUARTER, MONTH, DAY, HOUR, MINUTE and SECOND functions will be Gregorian values regardless of the display format for the supplied date value. For example, if the display format of the supplied date is Hijri, the returned values for the YEAR, QUARTER, MONTH, DAY, HOUR, MINUTE and SECOND functions will be values associated with the equivalent Gregorian date.

Example

FormulaDescriptionResult
=SECOND({date})Seconds of the date variable (assuming the variable is 2008-10-20 14:30:25)25
=SECOND(2010-03-13 00:12:45)Seconds of the date45

Errors

For a full list of formula errors, please read Formula errors.


Related functions

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or go live in 7 days.