|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use InvalidDurationException | |
---|---|
com.atlassian.core.util |
Uses of InvalidDurationException in com.atlassian.core.util |
---|
Methods in com.atlassian.core.util that throw InvalidDurationException | |
---|---|
static long |
DateUtils.getDuration(java.lang.String durationStr)
Given a duration string, get the number of seconds it represents (all case insensitive): w = weeks d = days h = hours m = minutes If no category is specified, assume minutes. Each field must be separated by a space, and they can come in any order. |
static long |
DateUtils.getDuration(java.lang.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(java.lang.String durationStr,
int hoursPerDay,
int daysPerWeek)
This function retrieves a duration in seconds that depends on number of hours in a day and days in a week. |
static long |
DateUtils.getDuration(java.lang.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.getDurationWithNegative(java.lang.String durationStr)
Get a duration string with the possibility of a negative. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |