Class AstronomyDayEvent

java.lang.Object
com.timeanddate.services.dataTypes.astro.AstronomyDayEvent

public class AstronomyDayEvent extends Object
Author:
Cato Auestad <cato@timeanddate.com>
  • Constructor Details

    • AstronomyDayEvent

      public AstronomyDayEvent()
  • Method Details

    • getType

      public AstronomyEventCode getType()
      Indicates the type of the event.
    • getISOTime

      public TADDateTime getISOTime()
      Local time at which the event is happening (including UTC offset). The time does not include the seconds.
    • getUTCTime

      public TADDateTime getUTCTime()
      UTC time at which the event is happening. The time does not include the seconds.
    • getAltitude

      public double getAltitude()
      Altitude in degrees of the center of the queried astronomical object above an ideal horizon.

      Only for meridian type events.

    • getAzimuth

      public double getAzimuth()
      Horizontal direction of the astronomical object at set/rise time (referring to true north). North is 0 degrees, east is 90 degrees, south is 180 degrees and west is 270 degrees.

      Only for rise and set type events.

    • getDistance

      public double getDistance()
      Distance in kilometers of the earth's center to the center of the queried astronomical object in kilometers.

      Only for meridian type events.

    • getIlluminated

      public double getIlluminated()
      The fraction of the Moon's surface illuminated by the Sun's rays as seen from the selected location.

      Only for the moon for meridian type events.

    • fromNode

      public static AstronomyDayEvent fromNode(Node node)