ValueBased

data class ValueBased(val definition: ZmanDefinition, computeDuration: () -> Duration) : Zman<Duration>

This class represents a zman which simply carries a datetime-less value.

The duration of the zman is a com.kosherjava.zmanim.AstronomicalCalendar.temporalHour (or the various shaah zmanis base times such as com.kosherjava.zmanim.ZmanimCalendar.shaahZmanisGra or com.kosherjava.zmanim.ComplexZmanimCalendar.shaahZmanis16Point1Degrees).

Constructors

Link copied to clipboard
constructor(definition: ZmanDefinition, computeDuration: () -> Duration)

Properties

Link copied to clipboard
open override val definition: ZmanDefinition
Link copied to clipboard
val duration: Duration
Link copied to clipboard
val value: Duration

Functions

Link copied to clipboard
open operator override fun compareTo(other: Zman<Duration>): Int
Link copied to clipboard
fun formatted(tz: TimeZone): String
fun formatted(tz: TimeZone, inEnglish: Boolean): String
fun formatted(tz: TimeZone, opinion: String): String