duration method

TimeSpan duration()

Returns a TimeSpan whose value is the absolute value of this TimeSpan.

@return a TimeSpan whose value is the absolute value of this TimeSpan.

Implementation

TimeSpan duration() {
  return new TimeSpan(_abs(this.time));
}