Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Added new functions to the parser:
FUNCTIONFunctionRETURNED VALUEReturned value
formatWorkDuration(number duration) : stringSimilar 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) : stringSimilar 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.

...