This function subtracts two timestamps using a JWT calendar. The time time difference will be returned in milliseconds.
Syntax
timeDifference(firstDate, dateToSubtract, calendarName, timeZone) #Output: Number
Variant of the function where you can define an additional JWT calendar specification.
Syntax
timeDifference(firstDate, dateToSubtract, calendarName, additionalSpecifier, timeZone) #Output: Number
Use cases and examples
Use case | JWT feature | Workflow function | Field type | Automated action | Parser functions |
---|---|---|---|---|---|
Difference between two dates in business days | Text | formatWorkDuration() timeDifference() | |||
Automatically log work spent in a specific status | timeDifference() |