withYear

fun withYear(newYear: Long): HebrewLocalDate

Returns this object with the year set to the given newYear.

Note: This method does not change the day or month (e.g. if the month was the leap month HebrewMonth.ADAR_II, and newYear is not a leap year, the month will remain HebrewMonth.ADAR_II).


fun withYear(newYear: Int): HebrewLocalDate