| java.lang.Object | |
| ↳ | com.atlassian.jira.util.JiraDurationUtils.PrettyDurationFormatter |
This formatter formats time duration to "pretty" format, such as 3 weeks, 2 days, 1 hour, 15 minutes. This value is formatted according to system or user's locale.
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| String | KEY_FORMAT_PRETTY | ||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Formats a given time duration with default (system) locale.
| |||||||||||
Formats a given time duration with given locale.
| |||||||||||
Formats a given time duration with the given locale in the most compact way possible
| |||||||||||
Used by the Time Tracking report to show shorter durations than full pretty format.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||||||||||||
From interface
com.atlassian.jira.util.JiraDurationUtils.DurationFormatter
| |||||||||||||||||||||
Formats a given time duration with default (system) locale.
| duration | time duration to format |
|---|
Formats a given time duration with given locale.
| duration | time duration to format |
|---|---|
| locale | user's locale |
Formats a given time duration with the given locale in the most compact way possible
| duration | time duration in seconds |
|---|---|
| locale | locale to use |
Used by the Time Tracking report to show shorter durations than full pretty format.
| duration | time duration to format |
|---|

