Companion

object Companion

Properties

Link copied to clipboard
const val CHASERIM: Int = 0

A short year where both CHESHVAN and KISLEV are 29 days.

Link copied to clipboard
val Int.daysInJewishYear: Int

Returns the number of days for a given Jewish year. ND+ER

val Long.daysInJewishYear: Int
Link copied to clipboard
val Int.isCheshvanLong: Boolean

Returns if Cheshvan is long in a given Jewish year. The method name isLong is done since in a Kesidran (ordered) year Cheshvan is short. ND+ER

val Long.isCheshvanLong: Boolean
Link copied to clipboard
val Int.isJewishLeapYear: Boolean

Returns if the year is a Jewish leap year. Years 3, 6, 8, 11, 14, 17 and 19 in the 19 year cycle are leap years.

val Long.isJewishLeapYear: Boolean
Link copied to clipboard
val Int.isKislevShort: Boolean

val Long.isKislevShort: Boolean

Returns if Kislev is short (29 days VS 30 days) in a given Jewish year. The method name isShort is done since in a Kesidran (ordered) year Kislev is long. ND+ER

Link copied to clipboard
const val KESIDRAN: Int = 1

An ordered year where CHESHVAN is 29 days and .KISLEV is 30 days.

Link copied to clipboard
const val SHELAIMIM: Int = 2

A long year where both CHESHVAN and KISLEV are 30 days.

Functions

Link copied to clipboard
fun getDaysSinceStartOfJewishYear(year: Long, month: HebrewMonth, dayOfMonth: Int): Int

returns the number of days from Rosh Hashana of the date passed in, to the full date passed in.

Link copied to clipboard
fun getJewishCalendarElapsedDays(year: Int): Int

Returns the number of days elapsed from the Sunday prior to the start of the Jewish Calendar to the mean conjunction of Tishri of the Jewish year.

fun getJewishCalendarElapsedDays(year: Long): Long