The SECOND function is a simple date function that returns the number of seconds from a given time. If you are working with times, but only care about the seconds, the SECOND function lets you get rid of everything else. Remember that dates are really just saved as numbers by your spreadsheet with date formatting applied.
The SECOND function returns the number of seconds from any given unit of time.
Example 1 – Plain and Simple
A few simple examples of the SECOND function.
||Extract the second value from 2:20:20.||20|
||Extract the second value from 1.2.||0|
||Extract the second value from 2.22224545.||2|
Tip: Notice that the SECOND function returns a zero for 1.2. This is because .2 happens to be exactly 12 minutes. See how dates and times work to make a little sense out of this.
Live examples in Sheets
Go to this spreadsheet for the examples of the YEAR, MONTH, DAY, HOUR, MINUTE, and SECOND functions shown above that you can study and use anywhere you would like.