def sun_events(self, dt: datetime.datetime) -> list[tuple[str, float]]:
        """Get the four sun event's timestamps at 'dt'."""
        sunrise = self.sunrise(dt)
        sunset = self.sunset(dt)
        solar_noon, solar_midnight = self.noon_and_midnight(dt, sunset, sunrise)
        events = [
            (SUN_EVENT_SUNRISE, sunrise.timestamp()),
            (SUN_EVENT_SUNSET, sunset.timestamp()),
            (SUN_EVENT_NOON, solar_noon.timestamp()),
            (SUN_EVENT_MIDNIGHT, solar_midnight.timestamp()),
        ]
        self._validate_sun_event_order(events)
        return events
Get the four sun event's timestamps at 'dt'.
webapp/color_and_brightness.py