|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.jira.util.JiraDurationUtils.HoursDurationFormatter
public static class 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.
| Field Summary | |
|---|---|
static String |
KEY_FORMAT_HOURS
|
| Constructor Summary | |
|---|---|
JiraDurationUtils.HoursDurationFormatter(I18nHelper i18nBean)
|
|
| Method Summary | |
|---|---|
String |
format(Long duration)
Converts the given time duration into hours and formats it based on the system locale. |
String |
format(Long duration,
Locale locale)
Converts the given time duration into hours and formats it based on the given user's locale. |
String |
getI18nKey()
|
String |
shortFormat(Long duration)
Formats a given time duration with given locale in the most compact way possible. |
String |
shortFormat(Long duration,
Locale locale)
Formats a given time duration with the given locale in the most compact way possible |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String KEY_FORMAT_HOURS
| Constructor Detail |
|---|
public JiraDurationUtils.HoursDurationFormatter(I18nHelper i18nBean)
| Method Detail |
|---|
public String getI18nKey()
getI18nKey in interface JiraDurationUtils.DurationFormatterpublic String format(Long duration)
format in interface JiraDurationUtils.DurationFormatterduration - time duration to format
public String format(Long duration,
Locale locale)
format in interface JiraDurationUtils.DurationFormatterduration - time duration to formatlocale - user's locale
public String shortFormat(Long duration)
JiraDurationUtils.DurationFormatter
shortFormat in interface JiraDurationUtils.DurationFormatterduration - time duration to format
public String shortFormat(Long duration,
Locale locale)
JiraDurationUtils.DurationFormatter
shortFormat in interface JiraDurationUtils.DurationFormatterduration - time duration in secondslocale - locale to use
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||