IsoDuration class

ISO 8601 compliant duration

Constructors

IsoDuration({int years = 0, int months = 0, int weeks = 0, int days = 0, int hours = 0, int minutes = 0, int seconds = 0, bool isNegativeDuration = false})

Properties

days int
final
hashCode int
The hash code for this object.
no setteroverride
hours int
final
isNegativeDuration bool
final
minutes int
final
months int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
seconds int
final
weeks int
final
years int
final

Methods

addTo(DateTime input) DateTime
Adds this duration to the given input DateTime.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDuration() Duration
Converts this ISO duration to an approximate Dart duration.
toString() String
A string representation of this object.
override

Operators

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

Static Methods

parse(String textValue) IsoDuration
Parses the given textValue into a duration.