Package | Description |
---|---|
org.joda.time |
Provides support for dates, times, time zones, durations, intervals, and
partials.
|
Modifier and Type | Field | Description |
---|---|---|
static Seconds |
Seconds.MAX_VALUE |
Constant representing the maximum number of seconds that can be stored in this object.
|
static Seconds |
Seconds.MIN_VALUE |
Constant representing the minimum number of seconds that can be stored in this object.
|
static Seconds |
Seconds.ONE |
Constant representing one second.
|
static Seconds |
Seconds.THREE |
Constant representing three seconds.
|
static Seconds |
Seconds.TWO |
Constant representing two seconds.
|
static Seconds |
Seconds.ZERO |
Constant representing zero seconds.
|
Modifier and Type | Method | Description |
---|---|---|
Seconds |
Seconds.dividedBy(int divisor) |
Returns a new instance with the seconds divided by the specified divisor.
|
Seconds |
Seconds.minus(int seconds) |
Returns a new instance with the specified number of seconds taken away.
|
Seconds |
Seconds.minus(Seconds seconds) |
Returns a new instance with the specified number of seconds taken away.
|
Seconds |
Seconds.multipliedBy(int scalar) |
Returns a new instance with the seconds multiplied by the specified scalar.
|
Seconds |
Seconds.negated() |
Returns a new instance with the seconds value negated.
|
static Seconds |
Seconds.parseSeconds(java.lang.String periodStr) |
Creates a new
Seconds by parsing a string in the ISO8601 format 'PTnS'. |
Seconds |
Seconds.plus(int seconds) |
Returns a new instance with the specified number of seconds added.
|
Seconds |
Seconds.plus(Seconds seconds) |
Returns a new instance with the specified number of seconds added.
|
static Seconds |
Seconds.seconds(int seconds) |
Obtains an instance of
Seconds that may be cached. |
static Seconds |
Seconds.secondsBetween(ReadableInstant start,
ReadableInstant end) |
Creates a
Seconds representing the number of whole seconds
between the two specified datetimes. |
static Seconds |
Seconds.secondsBetween(ReadablePartial start,
ReadablePartial end) |
Creates a
Seconds representing the number of whole seconds
between the two specified partial datetimes. |
static Seconds |
Seconds.secondsIn(ReadableInterval interval) |
Creates a
Seconds representing the number of whole seconds
in the specified interval. |
static Seconds |
Seconds.standardSecondsIn(ReadablePeriod period) |
Creates a new
Seconds representing the number of complete
standard length seconds in the specified period. |
Seconds |
Days.toStandardSeconds() |
Converts this period in days to a period in seconds assuming a
24 hour day, 60 minute hour and 60 second minute.
|
Seconds |
Duration.toStandardSeconds() |
Converts this duration to a period in seconds assuming 1000 milliseconds
in a second.
|
Seconds |
Hours.toStandardSeconds() |
Converts this period in hours to a period in seconds assuming a
60 minute hour and 60 second minute.
|
Seconds |
Minutes.toStandardSeconds() |
Converts this period in minutes to a period in seconds assuming a
60 second minute.
|
Seconds |
Period.toStandardSeconds() |
Converts this period to a period in seconds assuming a
7 day week, 24 hour day, 60 minute hour and 60 second minute.
|
Seconds |
Weeks.toStandardSeconds() |
Converts this period in weeks to a period in seconds assuming a
7 day week, 24 hour day, 60 minute hour and 60 second minute.
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
Seconds.isGreaterThan(Seconds other) |
Is this seconds instance greater than the specified number of seconds.
|
boolean |
Seconds.isLessThan(Seconds other) |
Is this seconds instance less than the specified number of seconds.
|
Seconds |
Seconds.minus(Seconds seconds) |
Returns a new instance with the specified number of seconds taken away.
|
Seconds |
Seconds.plus(Seconds seconds) |
Returns a new instance with the specified number of seconds added.
|
Copyright (c) 2001-2006 - Joda.org