JewishCalendar

constructor()

Default constructor will set a default date to the current system date.


constructor(date: Instant, tz: TimeZone)

A constructor that initializes the date to the Date parameter.

Parameters

date

the Date to set the calendar to


constructor(date: LocalDate)

A constructor that initializes the date to the date parameter.

Parameters

date

the LocalDate to set the gregorianLocalDate to


constructor(date: HebrewLocalDate)

A constructor that initializes the hebrew date to the date parameter.

Parameters

date

the LocalDate to set the gregorianLocalDate to


constructor(date: LocalDate, isInIsrael: Boolean)

A constructor that initializes the date to the date parameter.

Parameters

date

the LocalDate to set the gregorianLocalDate to

isInIsrael

whether this class should calculate religious events with the rules of someone in israel


constructor(date: LocalDate, isInIsrael: Boolean, shouldUseModernHolidays: Boolean)

A constructor that initializes the date to the date parameter.

Parameters

date

the LocalDate to set the gregorianLocalDate to

isInIsrael

whether this class should calculate religious events with the rules of someone in israel


constructor(date: HebrewLocalDate, isInIsrael: Boolean)

A constructor that initializes the hebrew date to the date parameter.

Parameters

date

the LocalDate to set the gregorianLocalDate to

isInIsrael

whether this class should calculate religious events with the rules of someone in israel


constructor(date: HebrewLocalDate, isInIsrael: Boolean, shouldUseModernHolidays: Boolean)

A constructor that initializes the heberew date to the date parameter.

Parameters

date

the LocalDate to set the gregorianLocalDate to

isInIsrael

whether this class should calculate religious events with the rules of someone in israel


constructor(jewishYear: Int, jewishMonth: Int, jewishDayOfMonth: Int)

Creates a Jewish date based on a Jewish year, month and day of month.

Parameters

jewishYear

the Jewish year

jewishMonth

the Jewish month. The method expects a 1 for Nissan ... 12 for Adar and 13 for Adar II. Use the constants .NISSAN ... .ADAR (or .ADAR_II for a leap year Adar II) to avoid any confusion.

jewishDayOfMonth

the Jewish day of month. If 30 is passed in for a month with only 29 days (for example .IYAR, or .KISLEV in a year that .isKislevShort), the 29th (last valid date of the month) will be set

Throws

IllegalArgumentException

if the day of month is < 1 or 30, or a year of < 0 is passed in.


constructor(jewishYear: Long, jewishMonth: Int, jewishDayOfMonth: Int)
constructor(hebrewYear: Int, hebrewMonth: HebrewMonth, hebrewDayOfMonth: Int)
constructor(hebrewYear: Long, hebrewMonth: HebrewMonth, hebrewDayOfMonth: Int)
constructor(jewishYear: Long, jewishMonth: Int, jewishDayOfMonth: Int, inIsrael: Boolean)
constructor(jewishYear: Long, jewishMonth: HebrewMonth, jewishDayOfMonth: Int, inIsrael: Boolean)


constructor(jewishYear: Int, jewishMonth: Int, jewishDayOfMonth: Int, inIsrael: Boolean)
constructor(jewishYear: Int, jewishMonth: HebrewMonth, jewishDayOfMonth: Int, inIsrael: Boolean)

Creates a Jewish date based on a Jewish date and whether in Israel

Parameters

jewishYear

the Jewish year

jewishMonth

the Jewish month. The method expects a 1 for Nissan ... 12 for Adar and 13 for Adar II. Use the constants .NISSAN ... .ADAR (or .ADAR_II for a leap year Adar II) to avoid any confusion.

jewishDayOfMonth

the Jewish day of month. If 30 is passed in for a month with only 29 days (for example .IYAR, or .KISLEV in a year that .isKislevShort), the 29th (last valid date of the month) will be set.

inIsrael

whether in Israel. This affects Yom Tov calculations