TomlOffsetDateTime class
AST node that represents a TOML offset date-time value.
offset-date-time = full-date time-delim full-time
time-delim = "T" / %x20 ; T, t, or space
full-time = partial-time time-offset
- Inheritance
-
- Object
- TomlNode
- TomlValue
- TomlDateTime
- TomlOffsetDateTime
- Annotations
-
- @immutable
Constructors
- TomlOffsetDateTime(TomlFullDate date, TomlPartialTime time, TomlTimeZoneOffset offset)
- Creates a new offset date-time value.
- TomlOffsetDateTime.fromDateTime(DateTime dateTime)
- Converts a DateTime to a TOML offset date-time value.
Properties
- date → TomlFullDate
-
The date.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- offset → TomlTimeZoneOffset
-
The time-zone offset of the date-time.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- time → TomlPartialTime
-
The time without time-zone offset.
final
- type → TomlType
-
The type of the TOML value represented by this AST node.
no setteroverride
Methods
-
acceptDateTimeVisitor<
T> (TomlDateTimeVisitor< T> visitor) → T -
Invokes the correct
visit*
method for this date or time value of the given visitor.override -
acceptValueVisitor<
T> (TomlValueVisitor< T> visitor) → T -
Invokes the correct
visit*
method for this value of the given visitor.inherited -
acceptVisitor<
T> (TomlVisitor< T> visitor) → T -
Invokes the correct
visit*
method for this value of the given visitor.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
toUtcDateTime(
) → DateTime - Converts this AST node to an UTC DateTime object.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Properties
-
parser
→ Parser<
TomlOffsetDateTime> -
Parser for a TOML offset date-time value.
final
Static Methods
-
parse(
String input) → TomlOffsetDateTime -
Parses the given string as a TOML offset date-time.
override