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

Sun revolution

Earth revolution

Sun rotation

Earth rotation