Sunrise and sunset are found by scanning today for where the sun's altitude crosses the horizon, the same way the moon page finds the next full and new moon.