Package | Description |
---|---|
org.threeten.extra |
Modifier and Type | Field | Description |
---|---|---|
static Seconds |
Seconds.ZERO |
A constant for zero seconds.
|
Modifier and Type | Method | Description |
---|---|---|
Seconds |
Seconds.abs() |
Returns a copy of this duration with a positive length.
|
static Seconds |
Seconds.between(java.time.temporal.Temporal startInclusive,
java.time.temporal.Temporal endExclusive) |
Obtains a
Seconds consisting of the number of seconds between two temporals. |
Seconds |
Seconds.dividedBy(int divisor) |
Returns an instance with the amount divided by the specified divisor.
|
static Seconds |
Seconds.from(java.time.temporal.TemporalAmount amount) |
Obtains an instance of
Seconds from a temporal amount. |
Seconds |
Seconds.minus(int seconds) |
Returns a copy of this amount with the specified number of seconds subtracted.
|
Seconds |
Seconds.minus(java.time.temporal.TemporalAmount amountToAdd) |
Returns a copy of this amount with the specified amount subtracted.
|
Seconds |
Seconds.multipliedBy(int scalar) |
Returns an instance with the amount multiplied by the specified scalar.
|
Seconds |
Seconds.negated() |
Returns an instance with the amount negated.
|
static Seconds |
Seconds.of(int seconds) |
Obtains a
Seconds representing a number of seconds. |
static Seconds |
Seconds.ofHours(int hours) |
Obtains a
Seconds representing the number of seconds
equivalent to a number of hours. |
static Seconds |
Seconds.ofMinutes(int minutes) |
Obtains a
Seconds representing the number of seconds
equivalent to a number of hours. |
static Seconds |
Seconds.parse(java.lang.CharSequence text) |
Obtains a
Seconds from a text string such as PTnS . |
Seconds |
Seconds.plus(int seconds) |
Returns a copy of this amount with the specified number of seconds added.
|
Seconds |
Seconds.plus(java.time.temporal.TemporalAmount amountToAdd) |
Returns a copy of this amount with the specified amount added.
|
Modifier and Type | Method | Description |
---|---|---|
int |
Seconds.compareTo(Seconds otherAmount) |
Compares this amount to the specified
Seconds . |
Copyright © 2010–2018 ThreeTen.org. All rights reserved.