diffSeconds
diffSeconds
returns the difference in seconds between two date-time values, as a double
.
Syntax
diffSeconds(start, end)
Parameters
Parameter | Type | Description |
---|---|---|
start | Instant | The start time of the range. |
start | ZonedDateTime | The start time of the range. |
end | Instant | The end time of the range. |
end | ZonedDateTime | The end time of the range. |
Returns
Returns the difference in seconds between the supplied start and end values.
Examples
d1 = parseInstant("2022-01-01T00:00:00 ET")
d2 = parseInstant("2022-01-02T00:00:00 ET")
difference = diffSeconds(d1, d2)
println difference
- Log