Function | Returned value |
---|---|
formatWorkDuration(number duration) : string | Similar to function formatDuration() but using the workday and workweek defined at time tracking configuration, instead of 24 hours per day and 7 days per week.Example: formatWorkDuration(5 * 8 * {HOUR} + 2 * 8 * {HOUR} + 3 * {HOUR}) returns "1 week, 2 days, 3 hours", with 8 hours per workday and 5 days per workweek. |
shortFormatWorkDuration(number duration) : string | Similar to function shortFormatDuration() but using the workday and workweek defined at time tracking configuration, instead of 24 hours per day and 7 days per week.Example: formatWorkDuration(5 * 8 * {HOUR} + 2 * 8 * {HOUR} + 3 * {HOUR}) returns "1w 2d 3h" , with 8 hours per workday and 5 days per workweek. |