This function returns a text, similar to the function formatDuration(), but using the work day and work week defined at time tracking configuration, instead of 24 hours per day and 7 days a week.
Syntax
formatWorkDuration(duration) #Output: Text
This function is extremely helpful when you want to automatically calculate the duration in JWT calculated text fields.
If you prefer a more comprehensive representation, have a look at the shortFormatWorkDuration() function.
Function | Output |
---|---|
shortFormatWorkDuration() | "1d 11h 30m" |
formatWorkDuration() | "1 day, 11 hours, 30 minutes" |
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() |