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
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ObservingNight
  2. Serializable
  3. Product
  4. Equals
  5. Night
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new ObservingNight(site: Site, toLocalObservingNight: LocalObservingNight)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  6. lazy val duration: Duration

    Duration of the night.

    Duration of the night.

    Definition Classes
    Night
  7. lazy val end: Instant

    End instant of the night (exclusive).

    End instant of the night (exclusive).

    Definition Classes
    Night
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  10. def includes(instant: Instant): Boolean

    Returns true if the night includes the given Instant.

    Returns true if the night includes the given Instant.

    Definition Classes
    Night
  11. 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
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. def next: ObservingNight

    The next observing night.

  15. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  16. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  17. def previous: ObservingNight

    The previous observing night.

  18. def productElementNames: Iterator[String]
    Definition Classes
    Product
  19. 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
  20. lazy val start: Instant

    Start instant of the night (inclusive).

    Start instant of the night (inclusive).

    Definition Classes
    Night
  21. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  22. def toLocalDate: LocalDate

    Returns the local date on which this observing night ends.

  23. val toLocalObservingNight: LocalObservingNight
  24. 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.

  25. 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.

  26. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  27. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  28. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Night

Inherited from AnyRef

Inherited from Any

Ungrouped