HebrewMonth

enum HebrewMonth : Enum<HebrewMonth> , Comparable<HebrewMonth>

Entries

Link copied to clipboard

Value of the month field indicating Nissan, the first numeric month of the year in the Jewish calendar. With the year starting at TISHREI, it would actually be the 7th (or 8th in a leap) month of the year.

Link copied to clipboard

Value of the month field indicating Iyar, the second numeric month of the year in the Jewish calendar. With the year starting at TISHREI, it would actually be the 8th (or 9th in a leap) month of the year.

Link copied to clipboard

Value of the month field indicating Sivan, the third numeric month of the year in the Jewish calendar. With the year starting at TISHREI, it would actually be the 9th (or 10th in a leap) month of the year.

Link copied to clipboard

Value of the month field indicating Tammuz, the fourth numeric month of the year in the Jewish calendar. With the year starting at TISHREI, it would actually be the 10th (or 11th in a leap) month of the year.

Link copied to clipboard

Value of the month field indicating Av, the fifth numeric month of the year in the Jewish calendar. With the year starting at TISHREI, it would actually be the 11th (or 12th in a leap year) month of the year.

Link copied to clipboard

Value of the month field indicating Elul, the sixth numeric month of the year in the Jewish calendar. With the year starting at TISHREI, it would actually be the 12th (or 13th in a leap) month of the year.

Link copied to clipboard

Value of the month field indicating Tishrei, the seventh numeric month of the year in the Jewish calendar. With the year starting at this month, it would actually be the 1st month of the year.

Link copied to clipboard

Value of the month field indicating Cheshvan/marcheshvan, the eighth numeric month of the year in the Jewish calendar. With the year starting at TISHREI, it would actually be the 2nd month of the year.

Link copied to clipboard

Value of the month field indicating Kislev, the ninth numeric month of the year in the Jewish calendar. With the year starting at TISHREI, it would actually be the 3rd month of the year.

Link copied to clipboard

Value of the month field indicating Teves, the tenth numeric month of the year in the Jewish calendar. With the year starting at TISHREI, it would actually be the 4th month of the year.

Link copied to clipboard

Value of the month field indicating Shevat, the eleventh numeric month of the year in the Jewish calendar. With the year starting at TISHREI, it would actually be the 5th month of the year.

Link copied to clipboard

Value of the month field indicating Adar (or Adar I in a leap year), the twelfth numeric month of the year in the Jewish calendar. With the year starting at TISHREI, it would actually be the 6th month of the year.

Link copied to clipboard

Value of the month field indicating Adar II, the leap (intercalary or embolismic) thirteenth (Undecimber) numeric month of the year added in Jewish leap year). The leap years are years 3, 6, 8, 11, 14, 17 and 19 of a 19 year cycle. With the year starting at TISHREI, it would actually be the 7th month of the year.

Types

Link copied to clipboard
object Companion
Link copied to clipboard
class HebrewMonthRange(val start: HebrewMonth, val endInclusive: HebrewMonth) : ClosedRange<HebrewMonth> , Iterable<HebrewMonth>

Properties

Link copied to clipboard
val entries: EnumEntries<HebrewMonth>

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
val name: String
Link copied to clipboard

Returns the HebrewMonth which follows this month, with the first being NISSAN and last being ADAR_II. If this is the last month, this will wrap around and return the first month (which would actually be part of the next year). Note: this does not account for leap years and the presence of ADAR_II - it blindly gets the next month. In order to properly determine the next month accounting for leap years and without wrapping, use getNextMonthInYear.

Link copied to clipboard
val ordinal: Int
Link copied to clipboard

Returns the HebrewMonth which came before this month, with the first being NISSAN and last being ADAR_II. If this is the first month, this will wrap around and return the last month (which would actually be part of the previous year). Note: this does not account for leap years and the presence of ADAR_II - it blindly gets the next month. In order to properly determine the previous month accounting for leap years and without wrapping, use getPreviousMonthInYear.

Link copied to clipboard
val value: Int

Functions

Link copied to clipboard
fun getNextMonthInYear(jewishYear: Long, tishreiBased: Boolean = true): HebrewMonth?

Returns the next month in the jewishYear (with TISHREI being the first if tishreiBased is true, otherwise NISSAN), or null if this is the last month of the year. This method will not return ADAR_II if jewishYear is not a leap year.

Link copied to clipboard
fun getNumDaysInMonthForYear(jewishYear: Long): Int

Returns the number of days in this month for the given jewishYear.

Link copied to clipboard
fun getPreviousMonthInYear(tishreiBased: Boolean = true): HebrewMonth?

Returns the previous month in the jewishYear (with TISHREI being the first if tishreiBased is true, otherwise NISSAN), or null if this is the first month of the year. This method will not return ADAR_II if jewishYear is not a leap year.

Link copied to clipboard
fun getTishreiBasedValueInYear(jewishYear: Long): Int
Link copied to clipboard
fun isFirstMonthInYear(tishreiBased: Boolean = true): Boolean
Link copied to clipboard
fun isLastMonthInYear(jewishYear: Long, tishreiBased: Boolean = true): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun valueOf(value: String): HebrewMonth

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard
fun values(): Array<HebrewMonth>

Returns an array containing the constants of this enum type, in the order they're declared.