An amount of time, such as "6 hours" or "8 days".
Framework-level interface, use concrete types instead.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addTo(
Temporal temporal) → Temporal -
Returns a new instance of Temporal with this TemporalAmount
added to the given
temporal
. -
minus(
int amount, ChronoUnit unit) → TemporalAmount -
Returns a new instance of this TemporalAmount
with the given
amount
subtracted. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
plus(
int amount, ChronoUnit unit) → TemporalAmount -
Returns a new instance of this TemporalAmount
with the given
amount
added. -
subtractFrom(
Temporal temporal) → Temporal -
Returns a new instance of Temporal with this TemporalAmount
subtracted from the given
temporal
. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited