isPositive method

bool isPositive()

Indicates whether the value of the TimeSpan is positive.

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

Implementation

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