monthsUntil

fun monthsUntil(other: Month): Int

Returns the number of months from this Month to the provided Month.

0 when this.compareTo(other) is 0. Negative when this.compareTo(other) is negative.

Throws