TomlPartialTime class

A time without time-zone offset that is used for the internal representation of TOML time and date-time values.

partial-time   =
    time-hour ":" time-minute ":" time-second [ time-secfrac ]

time-hour      = 2DIGIT     ; 00-23
time-minute    = 2DIGIT     ; 00-59
time-second    = 2DIGIT     ; 00-58, 00-59, 00-60
                            ; based on leap second rules
time-secfrac   = "." 1*DIGIT
Annotations
  • @immutable

Constructors

TomlPartialTime(int hour, int minute, int second, [List<int> secondFractions = const []])
Creates a partial time.

Properties

hashCode int
The hash code for this object.
no setteroverride
hour int
The hour of the day, expressed as in a 24-hour clock (as a number from 0 to 23).
final
microsecond int
The microsecond of the millisecond as a number from 0 to 999.
no setter
millisecond int
The millisecond of the second as a number from 0 to 999.
no setter
minute int
The minute of the hour as a number from 0 to 59.
final
nanosecond int
The nanosecond of the microsecond as a number from 0 to 999.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
second int
The second of the minute as a number from 0 to 58, 59 or 60 based on leap seconds.
final
secondFractions List<int>
The fractions of the second as numbers from 0 to 999.
final

Methods

getSecondFractions(int i) int
Gets the ith entry of secondFractions or 0 if it does not exist.
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 Properties

parser → Parser<TomlPartialTime>
Parser for a partial time value with microsecond precision.
final