time_t sun_set(const time_t *timer)
Return the time of sunset, at the location of the observer. See the note about daylight_seconds().