isAssurBemlacha

fun isAssurBemlacha(currentTime: Instant, tzais: Instant, inIsrael: Boolean): Boolean

This is a utility method to determine if the current Date (date-time) passed in has a melacha (work) prohibition. Since there are many opinions on the time of tzais, the tzais for the current day has to be passed to this class. Sunset is the classes current day's .getElevationAdjustedSunset that observes the isUseElevation settings. The JewishCalendar.getInIsrael will be set by the inIsrael parameter.

Return

true if melacha is prohibited or false if it is not.

Parameters

currentTime

the current time

tzais

the time of tzais

inIsrael

whether to use Israel holiday scheme or not

See also