SECONDSAGO
Gets the number of seconds between the specified date and now.
Syntax
=SECONDSAGO(date)
Arguments
Argument | Type | Description |
---|---|---|
date | Date | The date to use for calculation |
Examples
The following examples assume the current date is January 2, 2020 at 12:00pm
=SECONDSAGO("2019-01-01")
→31665600
Gets the number of seconds from midnight January 1, 2019 to January 2, 2020 at 12:00pm
=SECONDSAGO("2020-01-01")
→129600
Gets the number of seconds from midnight January 1, 2020 to January 2, 2020 at 12:00pm
=SECONDSAGO("2020-01-03")
→-43200
Gets the number of seconds from midnight January 3, 2020 to January 2, 2020 at 12:00pm
Updated 9 months ago