TimeZoneOffset class final

An object that denotes an offset from UTC.

Implemented types

Constructors

TimeZoneOffset.withHourAndMinutes({required int hours, required int minutes})
Creates a new time zone offset object from the provided hours and minutes.
factory
TimeZoneOffset.withString(String offset)
Creates a new time zone offset object from a string, [+/-]HH:MM.
factory

Properties

hashCode → int
The hash code for this object.
no setteroverride
hours → int
Gets the hours component of the time zone offset represented by this instance.
no setter
minutes → int
Gets the minutes component of the time zone offset represented by this instance.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
Returns a string representing the amount of time ahead or behind UTC.
override

Operators

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