A moment in time, such as a date, time, or a combination of both.
Framework-level interface, use concrete types instead.
- Implementers
- Available extensions
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
-
adjust(
ChronoField field, int newValue) → Temporal -
Returns a new instance of this Temporal
with the given
field
adjusted tonewValue
. -
atEndOfMonth(
) → T -
Available on T, provided by the TemporalAdjusters extension
Returns a new instance of this Temporal at the end of the month. -
atStartOfMonth(
) → T -
Available on T, provided by the TemporalAdjusters extension
Returns a new instance of this Temporal at the start of the month. -
atStartOfWeek(
[String? locale]) → T -
Available on T, provided by the TemporalWeekFields extension
Returns a new instance of this Temporal at the start of the week. -
get(
ChronoField field) → int -
Returns the value for the given
field
of this Temporal. -
minus(
int amountToAdd, ChronoUnit unit) → Temporal -
Returns a new instance of this Temporal
with the given
amount
subtracted. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
plus(
int amount, ChronoUnit unit) → Temporal -
Returns a new instance of this Temporal
with the given
amount
added. -
toString(
) → String -
A string representation of this object.
inherited
-
until(
Temporal endExclusive, ChronoUnit unit) → int -
Returns the difference in the given
unit
between this Temporal andendExclusive
.
Operators
-
operator +(
TemporalAmount amount) → Temporal -
Returns a new instance of this Temporal
with the given
amount
added. -
operator -(
TemporalAmount amount) → Temporal -
Returns a new instance of this Temporal
with the given
amount
subtracted. -
operator ==(
Object other) → bool -
The equality operator.
inherited