negate method

TimeSpan negate()

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

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

Implementation

TimeSpan negate() {
  return new TimeSpan(-this.time);
}