HoraZoned class
A timezone-aware view of an instant.
- Implemented types
- Annotations
-
- @immutable
Constructors
- HoraZoned(Hora instant, HoraTimezone timezone)
Properties
- day → int
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- hour → int
-
no setter
- instantUtc → Hora
-
The original instant normalized to UTC.
final
- microsecond → int
-
no setter
- millisecond → int
-
no setter
- minute → int
-
no setter
- month → int
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- second → int
-
no setter
- timezone → HoraTimezone
-
The fixed-offset timezone used for wall-clock projection.
final
- unix → int
-
no setter
- unixMicros → int
-
no setter
- unixMillis → int
-
no setter
- utcOffset → Duration
-
no setter
- wallClock → Hora
-
Wall-clock time in timezone, represented as a UTC-based Hora container.
no setter
- weekday → int
-
no setter
- year → int
-
no setter
Methods
-
compareTo(
HoraZoned other) → int -
Compares this object to another object.
override
-
format(
[String pattern = 'YYYY-MM-DDTHH:mm:ssZ']) → String - Formats wall-clock time using Hora tokens and target timezone offset.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reinterpretAs(
HoraTimezone targetTimezone) → Hora -
Reinterprets current wall-clock as belonging to
targetTimezone. -
toIso8601String(
) → String -
ISO 8601 output with timezone offset, e.g.
2024-03-15T21:00:00+09:00. -
toString(
) → String -
A string representation of this object.
override
-
withTimezone(
HoraTimezone tz) → HoraZoned - Same instant in another timezone.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited