These docs are for v1.0. Click to read the latest docs for v1.2.

SECONDSAGO

Gets the number of seconds between the specified date and now.

Syntax

=SECONDSAGO(date)

Arguments

ArgumentTypeDescription
dateDateThe 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