It takes 23 hours, 56 minutes and 4 seconds (86164 seconds) for the earth to make one revolution around its axis, this is how long a Sidereal day is. The 24-hour day is measured when 0 degree longitude faces the sun after one complete revolution as the earth goes around the sun taking few extra degree turns.