Since we're on the subject of length(s) of the day, the second link -- Comparative lengths of... -- demonstrates that because of the optical characteristics of Earth's atmosphere the horizon is inadequate as a reference against which to measure the positions and motions of celestial objects.
Instead, astronomers use as a reference an imaginary line that connects the North and South cardinal points of the compass with the point at the top of the sky (the Zenith), a line they call the Meridian.
The Meridian is unique to each observer, but being a projection onto the surface of the sky, the Merdian behaves the same for every observer.
The Meridian rotates with the Earth. The sun, moon, planets and stars all sweep across the merdian, from east to west, as Earth turns west to east.
The interval of time required for a star to cross the Meridian, pass from sight behind the western horizon, reappear from behind the eastern horizon, and then return to the Merdian is the period of Earth's true rotation, 23h 56m 4.09s, and is called the Sidereal day.
Were it not for tidal interactions between the moon and Earth, and Earth's large bodies of water sloshing about in their respective basins, the rotation period of Earth -- the Sideral day -- would remain unchanged.
The sun also seems to move across the Meridian each day, at noon, to return to it the following day, at noon. This period is the Solar day. We average it as being 24 hours in length.
The solar day is not the same length as the sidereal day. It is longer. This is because as the Earth rotates it also is moving around the sun (it takes Earth 365 days to travel along its 360 degree orbit around the sun, moving almost one degree per day. Seen from Earth, the sun shifts eastward against the background of stars approximately one degree per day. The solar day is the sideral day plus 3m 56s, the time it takes the Earth to rotate that one additional degree (two apparent solar diameters). After a year, the sun is seen to return to the same place amongst the background of stars).
But because Earth's orbit is an ellipse, the rate at which Earth moves along its orbit is not constant. Near January, when Earth is closest to the sun and is moving faster, the solar day is longer than in July when Earth is farthest from the sun and moving most slowly.
There are a couple other day intervals of slightly different definition, but this shall suffice to make the point that day is a term not unlike megabyte.