validUnitDay property

bool validUnitDay

Returns whether the difference can be converted into the time unit day.

Implementation

bool get validUnitDay =>
    differenceMsAbs < MS_PER_WEEK &&
    (differenceMsAbs / MS_PER_DAY).abs().round() != DAYS_PER_WK;