isZero property

bool get isZero

States wheter the TimeDifference's value is zero. If so, the difference is invalid and cannot be used for measuring accurate relative dates.

Implementation

bool get isZero {
  return value == 0;
}