TemporalTime class
Represents a valid extended ISO-8601 Time string, with an optional timezone offset. hh:mm:ss.sss±hh:mm:ss hh:mm:ss.sss https://docs.aws.amazon.com/appsync/latest/devguide/scalars.html#appsync-defined-scalars
- Implemented types
- Annotations
-
- @immutable
Constructors
- TemporalTime(DateTime dateTime)
-
Constructs a new TemporalTime from a Dart DateTime
The date fields (year, month, day) are ignored
factory
- TemporalTime.fromString(String iso8601String)
-
Constructs a new TemporalTime from a ISO8601 string adhering to the format:
hh:mm
hh:mmZ
hh:mm:ss
hh:mm:ssZ
hh:mm:ss.sss
hh:mm:ss.sssZ
without Z:
+hh:mm
+hh:mm:ss
factory
- TemporalTime.withOffset(DateTime dateTime, Duration offset)
-
Constructs a new TemporalTime from a Dart DateTime and Duration
The date fields (year, month, day) are ignored
factory
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
compareTo(
TemporalTime other) → int -
Compares this object to another object.
override
-
format(
) → String - Return ISO8601 String of format hh:mm:ss.sss+hh:mm:ss
-
getDateTime(
) → DateTime - Return DateTime Date fields are set as January 1, 1970.
-
getOffset(
) → Duration? - Return offset
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
now(
) → TemporalTime - Constructs a new TemporalTime at the current date.