TimestampOffset class final

An object that represents a date, time, and its offset from UTC.

Implemented types

Constructors

TimestampOffset.withDateOnlyTimeOnlyAndOffset({required DateOnly dateOnly, required TimeOnly timeOnly, required TimeZoneOffset timeZoneOffset})
Creates a new timestamp offset object from the provided date, time, and time zone offset.
factory
TimestampOffset.withDateTimeAndOffset({required DateTime dateTime, required TimeZoneOffset timeZoneOffset})
Creates a new timestamp offset object with the given value.
factory
TimestampOffset.withString(String timestampString)
Creates a new timestamp offset object with the given value.
factory

Properties

dateOnly DateOnly
The date component of the timestamp offset.
no setter
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timeOnly TimeOnly
The time component of the timestamp offset.
no setter
timeZoneOffset TimeZoneOffset
The amount of hours ahead or behind UTC.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
Returns a string representing the timestamp in ISO8601 format, YYYY-MM-DDTHH:MM:SS.sss.
override

Operators

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