time_interval
Calculates the duration of a time interval between two dates (datetimes/timestamps).
The dates can be specified either as two datetime columns (in which case the second is subtracted from the first),
or as a single column and a reference date provided as a parameter (see since
or until
in parameters below).
If only one column is provided as input, one of since
or until
must be specified as a reference date.
Was this page helpful?