timestamp_diff_in_seconds
Get difference between two timestamps in seconds.
Example
1
2
{{ '2020-01-15 15:00:00' | timestamp_diff_in_seconds }} => 1234
{{ '2020-01-15 15:00:00' | timestamp_diff_in_seconds: '2020-01-15 15:01:00' }} => 60
Input
| Type | Parameter | Description | Required |
|---|---|---|---|
| string | timestamp | The timestamp to add hours to. Comes before the | sign. | Required |
| double | secondTimestamp | !Optional. If left out the current time will be used |
Output
| Type | Description |
|---|---|
| integer | Seconds |