Class AstronomyDayEvent
java.lang.Object
com.timeanddate.services.dataTypes.astro.AstronomyDayEvent
- Author:
- Cato Auestad <cato@timeanddate.com>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AstronomyDayEvent
double
Altitude in degrees of the center of the queried astronomical object above an ideal horizon.double
Horizontal direction of the astronomical object at set/rise time (referring to true north).double
Distance in kilometers of the earth's center to the center of the queried astronomical object in kilometers.double
The fraction of the Moon's surface illuminated by the Sun's rays as seen from the selected location.Local time at which the event is happening (including UTC offset).getType()
Indicates the type of the event.UTC time at which the event is happening.
-
Constructor Details
-
AstronomyDayEvent
public AstronomyDayEvent()
-
-
Method Details
-
getType
Indicates the type of the event. -
getISOTime
Local time at which the event is happening (including UTC offset). The time does not include the seconds. -
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
-