Interface SlaInformationService.DurationFormatter
- Enclosing interface:
- SlaInformationService
@PublicApi
public static interface SlaInformationService.DurationFormatter
This allows you to format SLA durations into friendly String versions
-
Method Summary
Modifier and TypeMethodDescriptionformat
(com.atlassian.jira.user.ApplicationUser user, long durationMS) Formats the duration into a friendly formatformatShort
(com.atlassian.jira.user.ApplicationUser user, long durationMS) Formats the duration into a short friendly format
-
Method Details
-
format
Formats the duration into a friendly format- Parameters:
user
- the user in playdurationMS
- the duration in milliseconds to format- Returns:
- a friendly formatted string
-
formatShort
Formats the duration into a short friendly format- Parameters:
user
- the user in playdurationMS
- the duration in milliseconds to format- Returns:
- a short friendly formatted string
-