validUnitMonth property

bool get validUnitMonth

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

Implementation

bool get validUnitMonth =>
    differenceMsAbs < MS_PER_YEAR &&
    (differenceMsAbs / MS_PER_MONTH).abs().round() != MNTHS_PER_YR;