| java.lang.Object | |
| ↳ | com.atlassian.jira.util.JiraDurationUtils.HoursDurationFormatter |
This formatter formats time duration to hours only. The resulting string returned is a real number representing the number of hours. This value is then formatted according to system or user's locale.
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| String | KEY_FORMAT_HOURS | ||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Converts the given time duration into hours and formats it based on the given user's locale.
| |||||||||||
Converts the given time duration into hours and formats it based on the system locale.
| |||||||||||
Formats a given time duration with the given locale in the most compact way possible
| |||||||||||
Formats a given time duration with given locale in the most compact way possible.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||||||||||||
From interface
com.atlassian.jira.util.JiraDurationUtils.DurationFormatter
| |||||||||||||||||||||
Converts the given time duration into hours and formats it based on the given user's locale. If the duration given is a negative number, returns an empty string.
| duration | time duration to format |
|---|---|
| locale | user's locale |
Converts the given time duration into hours and formats it based on the system locale. If the duration given is a negative number, returns an empty string.
| duration | time duration to format |
|---|
Formats a given time duration with the given locale in the most compact way possible
| duration | time duration in seconds |
|---|---|
| locale | locale to use |
Formats a given time duration with given locale in the most compact way possible.
| duration | time duration to format |
|---|

