final case class ObservingNight(site: Site, toLocalObservingNight: LocalObservingNight) extends Night with Product with Serializable
An observing night is defined as the period of time from 14:00 on one day until 14:00 on the following day. In a timezone that honors daylight saving, it is sometimes longer and sometimes shorter than a period of 24 hours.
An ObservingNight pairs a Site with a LocalObservingNight to obtain
precise start/end Instants.
- Source
- ObservingNight.scala
- Alphabetic
- By Inheritance
- ObservingNight
- Serializable
- Product
- Equals
- Night
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new ObservingNight(site: Site, toLocalObservingNight: LocalObservingNight)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- lazy val duration: Duration
Duration of the night.
Duration of the night.
- Definition Classes
- Night
- lazy val end: Instant
End instant of the night (exclusive).
End instant of the night (exclusive).
- Definition Classes
- Night
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def includes(instant: Instant): Boolean
Returns
trueif the night includes the givenInstant.Returns
trueif the night includes the givenInstant.- Definition Classes
- Night
- lazy val interval: Bounded[Instant]
The
Intervalfor the the observing night at the associated site.The
Intervalfor the the observing night at the associated site.- Definition Classes
- ObservingNight → Night
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def next: ObservingNight
The next observing night.
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- def previous: ObservingNight
The previous observing night.
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val site: Site
Location at which the times described by this night are valid.
Location at which the times described by this night are valid.
- Definition Classes
- ObservingNight → Night
- lazy val start: Instant
Start instant of the night (inclusive).
Start instant of the night (inclusive).
- Definition Classes
- Night
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toLocalDate: LocalDate
Returns the local date on which this observing night ends.
- val toLocalObservingNight: LocalObservingNight
- def twilightBounded(twilightType: TwilightType): Option[TwilightBoundedNight]
Constructs a TwilightBoundedNight for this observing night according to the specified lucuma.core.enum.TwilightType.
Constructs a TwilightBoundedNight for this observing night according to the specified lucuma.core.enum.TwilightType.
Returns None if there's no sunset or sunrise for the specified lucuma.core.enum.TwilightType.
- def twilightBoundedUnsafe(twilightType: TwilightType): TwilightBoundedNight
Constructs a TwilightBoundedNight for this observing night according to the specified lucuma.core.enum.TwilightType.
Constructs a TwilightBoundedNight for this observing night according to the specified lucuma.core.enum.TwilightType.
Throws and exeception if there's no sunset or sunrise for the specified lucuma.core.enum.TwilightType.
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])