Returns the number of months from the current months of the year to the given month of the year. If they are the same, then the result is 0.
The current month of the year.
The month of the year to get the number of months to.
assert(monthsToMonth(Month.jan, Month.jan) == 0); assert(monthsToMonth(Month.jan, Month.dec) == 11); assert(monthsToMonth(Month.jul, Month.oct) == 3);
See Implementation
Returns the number of months from the current months of the year to the given month of the year. If they are the same, then the result is 0.