isNegative method

bool isNegative()

Indicates whether the value of the TimeSpan is negative.

@return if the value of the TimeSpan is less than zero. otherwise.

Implementation

bool isNegative() {
  return this.compareTo(TimeSpan.ZERO) < 0 ? true : false;
}