OffsetTime class
- Annotations
-
- @immutable
Constructors
- OffsetTime(LocalTime clockTime, Offset offset)
-
Constructs an instance of the specified time and offset.
const
Properties
- clockTime → LocalTime
-
Gets the time-of-day represented by this value.
final
- hashCode → int
-
Returns a hash code for this offset time.
no setteroverride
- hourOf12HourClock → int
-
Gets the hour of the half-day of this offset time, in the range 1 to 12 inclusive.
no setter
- hourOfDay → int
-
Gets the hour of day of this offset time, in the range 0 to 23 inclusive.
no setter
- millisecondOfSecond → int
-
Gets the millisecond of this offset time within the second, in the range 0 to 999 inclusive.
no setter
- minuteOfHour → int
-
Gets the minute of this offset time, in the range 0 to 59 inclusive.
no setter
- nanosecondOfSecond → int
-
Gets the nanosecond of this offset time within the second, in the range 0 to 999,999,999 inclusive.
no setter
- offset → Offset
-
Gets the offset from UTC of this value.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- secondOfMinute → int
-
Gets the second of this offset time within the minute, in the range 0 to 59 inclusive.
no setter
Methods
-
adjust(
LocalTime adjuster(LocalTime)) → OffsetTime - Returns this offset time-of-day, with the given date adjuster applied to it, maintaining the existing offset.
-
atDate(
LocalDate date) → OffsetDateTime - Combines this OffsetTime with the given LocalDate into an OffsetDateTime.
-
equals(
OffsetTime other) → bool - Compares two OffsetTime values for equality. This requires that the date values be the same and the offsets.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
[String? patternText, Culture? culture]) → String -
Formats the value of the current instance using the specified pattern.
override
-
withOffset(
Offset offset) → OffsetTime - Creates a new OffsetTime for the same time-of-day, but with the specified UTC offset.
Operators
-
operator ==(
Object right) → bool -
Implements the operator == (equality).
override