ne
Returns whether the receiver is a different month from another value. It is the logical opposite of eq. Day anchors are ignored.
API Reference
Signatures
Parameters
Returns
Returns true when the months are not equal; otherwise false.
Throws
- Throws when an input value is not a valid month.
Agent Contract
Agent Notes
- Use
neinstead of!month.eq(...)when the not-equal intent should be explicit. - Day anchors never affect the result; only the year-month is compared.