Class AstronomyDay

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

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

    • getDate

      public TADDateTime getDate()
      Date for the current information.
    • DayLength

      public TimeSpan DayLength()
      Length of this day (time between sunrise and sunset). If the sun is not up on this day, 00:00 will reported. If the sun does not set on this day, the value will read 24:00.
    • getMoonPhase

      public MoonPhase getMoonPhase()
      Moon phase for the day. Only if requested.
    • getEvents

      public List<AstronomyDayEvent> getEvents()
      Lists all events during the day.
    • fromNode

      public static AstronomyDay fromNode(Node node)