The length of an earth day is determined by the time required for approximately one

Sun revolution

Sun rotation

Earth rotation

Earth revolution