This function returns a text representing a time duration (in milliseconds), i.e. the difference between two date-time values, using the current user's language.
formatDuration(duration) #Output: Text
Examples
|
Parser expression |
Description |
|---|---|
|
Bash
|
This example returns: 1 day, 11 hours, 30 minutes (Given the user language is set to English.) |
|
Bash
|
This example returns: 1 minute (Given the user language is set to English.) |
|
Bash
|
This example returns the time between the creation and resolution of an issue.
|
Additional information
Parameters used in this function
|
Parameter |
Input (data type) |
Description |
|---|---|---|
|
|
number |
A number representing a duration (in milliseconds) or the calculation of a duration. |
Output
This function returns a 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, please see shortFormatDuration().
|
Function |
Output |
|---|---|
|
|
|
|
|
|
(books) Use cases and examples
| Use case |
|---|
| No content found. |