| Package | Description |
|---|---|
| com.atlassian.core.util |
| Modifier and Type | Method and Description |
|---|---|
static DateUtils.Duration |
DateUtils.Duration.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DateUtils.Duration[] |
DateUtils.Duration.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
static Map<String,DateUtils.Duration> |
DurationUtils.getDurationTokens(I18nTextProvider i18n) |
| Modifier and Type | Method and Description |
|---|---|
static long |
DateUtils.getDuration(String durationStr,
DateUtils.Duration defaultUnit)
Given a duration string, get the number of seconds it represents (all case insensitive):
w = weeks
d = days
h = hours
m = minutes
ie 2h = 7200, 60m = 3600, 3d = 259200, 30m
|
static long |
DateUtils.getDuration(String durationStr,
int hoursPerDay,
int daysPerWeek,
DateUtils.Duration defaultUnit)
This function retrieves a duration in seconds that depends on number of hours in a day and
days in a week
|
static long |
DateUtils.getDurationSeconds(String durationStr,
long secondsPerDay,
long secondsPerWeek,
DateUtils.Duration defaultUnit)
Convert a duration string in the number of seconds it represents.
|
static long |
DurationUtils.getDurationSeconds(String durationStr,
long secondsPerDay,
long secondsPerWeek,
DateUtils.Duration defaultUnit,
Locale locale,
I18nTextProvider i18n) |
static long |
DurationUtils.getDurationSeconds(String durationStr,
long secondsPerDay,
long secondsPerWeek,
DateUtils.Duration defaultUnit,
Locale locale,
Map<String,DateUtils.Duration> tokens) |
| Modifier and Type | Method and Description |
|---|---|
static long |
DurationUtils.getDurationSeconds(String durationStr,
long secondsPerDay,
long secondsPerWeek,
DateUtils.Duration defaultUnit,
Locale locale,
Map<String,DateUtils.Duration> tokens) |
Copyright © 2003–2017 Atlassian. All rights reserved.