Zman

sealed class Zman<T> : Comparable<Zman<T>>

This class represents a halachic moment in time or duration of time. Some zmanim, like ZmanType.SHAA_ZMANIS, don't have a moment when they occur. Rather, they carry a value. Others, like ZmanType.SHKIAH happen at a specific moment in time.

Parameters

T

the type of value that this zman represents (Instant, Duration, etc.). This is the type of the value property.

Inheritors

Types

Link copied to clipboard
data class DateBased(val definition: ZmanDefinition, computeInstant: () -> Instant?) : Zman<Instant?>

This class represents a zman that has a moment in which it occurs.

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

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

Properties

Link copied to clipboard
Link copied to clipboard
val value: T

Functions

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