The 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.
formatWorkDuration(duration) #Output: Text
If you prefer a more detailed representation, have a look at the shortFormatWorkDuration() function.
formatWorkDuration() | shortFormatWorkDuration() |
---|---|
"1 week, 11 days, 3 hours" . | "1w 11d 3h" |