AstronomyDay

public struct AstronomyDay : Codable

Astronomy Day

See also

AstronomyDayType
  • Date for the current information.

    Declaration

    Swift

    public let date: Date?
  • Length of this day (time between sunrise and sunset). If the sun is not up on this day, 00:00:00 will reported. If the sun does not set on this day, the value will read 24:00:00. - Attribute only applies for the sun object and if requested.

    Declaration

    Swift

    public let daylength: String?
  • Lists all events during the day. - Type: Array of AstronomyDayEventType

    Declaration

    Swift

    public let events: [AstronomyDayEvent]?
  • Moon phase for the day. Only if requested.

    Declaration

    Swift

    public let moonphase: String?