TimezoneExt extension
Extension providing timezone operations for Hora.
- on
Properties
- offsetHours → double
-
Available on Hora, provided by the TimezoneExt extension
Gets the timezone offset in hours.no setter - offsetString → String
-
Available on Hora, provided by the TimezoneExt extension
Gets the timezone offset formatted as a string.no setter - timezoneName → String
-
Available on Hora, provided by the TimezoneExt extension
Gets the timezone name of this date.no setter - utcOffset → Duration
-
Available on Hora, provided by the TimezoneExt extension
Gets the UTC offset of this date.no setter
Methods
-
inTimezone(
HoraTimezone tz) → Hora -
Available on Hora, provided by the TimezoneExt extension
Converts this date to a specific timezone. -
isSameTimezone(
Hora other) → bool -
Available on Hora, provided by the TimezoneExt extension
Checks if this is in the same timezone as another date. -
timezoneDifference(
HoraTimezone tz) → Duration -
Available on Hora, provided by the TimezoneExt extension
Gets the time difference to another timezone. -
toLocal(
) → Hora -
Available on Hora, provided by the TimezoneExt extension
Converts this date to local time. -
toUtc(
) → Hora -
Available on Hora, provided by the TimezoneExt extension
Converts this date to UTC. -
wallClockIn(
HoraTimezone tz) → ({int hour, int minute, int second}) -
Available on Hora, provided by the TimezoneExt extension
Gets the wall clock time in another timezone. -
withTimezone(
HoraTimezone tz) → Hora -
Available on Hora, provided by the TimezoneExt extension
Creates a Hora with the same local time but in a different timezone.