DurationParser class
Parse duration from string in ISO-8601 format.
Durations define the amount of intervening time in a time interval and
are represented by the format Pn
Yn
Mn
DTn
Hn
Mn
S or
Pn
W as shown on the aside.
In these representations, the n
is replaced by the value
for each of the date and time elements that follow the n
.
Leading zeros are not required, but the maximum number of digits for each element should be agreed to by the communicating parties.
Constructors
- DurationParser()
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
-
parse(
String value) → Duration -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited