add / sub
Adds or subtracts an integer month offset and returns a new Month value.
API Reference
Signatures
Parameters
Returns
Returns a new immutable MonthInstance.
Throws
Throws when months or the resulting month index is not a safe integer.
Agent Contract
Agent Notes
- Use
difffor month differences between two values; do not overloadsubwith another month value. - Do not use
Date#setMonth, because@teakit/monthis month-only and timezone-free.