The length of totality during a solar eclipse depends on the distance of the moon from the earth, the location on the earth, and the local solar time.