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

Sun revolution

Earth rotation

Earth revolution

Sun rotation