LocationTime class

This struct presents all the time data tied to a location, like an arrival or departure time.

The time data is originally specified in RFC 3339, section 5.6 format. For example, "2022-03-23T16:07:31+01:00" in Cracow, Poland, i.e. a Central European Time (CET) location. Note that this struct doesn't give any data on the tied location. The location should be derived from the context.

Annotations

Constructors

LocationTime(DateTime localTime, DateTime utcTime, Duration utcOffset)
Creates a new instance.
const

Properties

hashCode → int
The hash code for this object.
no setter
localTime → DateTime
The time as observed in the tied location. For example, if a route is requested in Cracow, Poland, the local time is "2022-03-23T16:07:31" in CET, i.e. one hour ahead of the UTC time.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
utcOffset → Duration
The UTC offset is the difference between the local time and the Coordinated Universal Time (UTC) in seconds. For example, if the local time is UTC+01:00, it is +3600 and if the local time is UTC-05:00, it is -18000.
final
utcTime → DateTime
The time as Coordinated Universal Time (UTC). For example, if a route is requested in Poland, the UTC time is "2022-03-23T15:07:31", i.e. one hour behind the local time.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.