eq
Returns whether the receiver is the same month as another value. Day anchors are ignored — comparison uses the month index only.
API Reference
Signatures
Parameters
Returns
Returns true when the months are equal; otherwise false.
Throws
- Throws when an input value is not a valid month.
Agent Contract
Agent Notes
- Use comparison methods instead of relational operators on
Monthvalues. - Day anchors never affect equality; only the year-month is compared.