<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WeatherKit",
  "identifier" : "/documentation/WeatherKit/SunEvents",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "WeatherKit"
    ],
    "preciseIdentifier" : "s:10WeatherKit9SunEventsV"
  },
  "title" : "SunEvents"
}
-->

# SunEvents

An enumeration that represents dates of solar events, including sunrise, sunset, dawn, and dusk.

```
struct SunEvents
```

## Topics

### Getting the sun events

[`astronomicalDawn`](/documentation/WeatherKit/SunEvents/astronomicalDawn)

The time of astronomical sunrise when the sun’s center is 18° below the horizon.

[`astronomicalDusk`](/documentation/WeatherKit/SunEvents/astronomicalDusk)

The time of astronomical sunset, when the sun’s center is 18° below the horizon.

[`civilDawn`](/documentation/WeatherKit/SunEvents/civilDawn)

The time of civil sunrise when the sun’s center is 6° below the horizon.

[`civilDusk`](/documentation/WeatherKit/SunEvents/civilDusk)

The time of civil sunset, when the sun’s center is 6° below the horizon.

[`nauticalDawn`](/documentation/WeatherKit/SunEvents/nauticalDawn)

The time of nautical sunrise when the sun’s center is 12° below the horizon.

[`nauticalDusk`](/documentation/WeatherKit/SunEvents/nauticalDusk)

The time of nautical sunset, when the sun’s center is 12° below the horizon.

[`solarMidnight`](/documentation/WeatherKit/SunEvents/solarMidnight)

Represents solar midnight, the time when the sun reaches its lowest point in the sky.

[`solarNoon`](/documentation/WeatherKit/SunEvents/solarNoon)

Represents solar noon, the time when the sun reaches its highest point in the sky.

[`sunrise`](/documentation/WeatherKit/SunEvents/sunrise)

The sunrise time immediately before the solar transit closest to calendar noon.

[`sunset`](/documentation/WeatherKit/SunEvents/sunset)

The sunset time immediately after the solar transit closest to calendar noon.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)