This is called a sidereal day. On Earth, a sidereal day is almost exactly 23 hours and 56 minutes.