Earth rotates once in about 24 hours with respect to the Sun, but once every 23 hours, 56 minutes and 4 seconds with respect to other distant stars. Scientists call this difference crucial to ...
The time it takes for the sun to completely rotate depends where on the sun you are measuring.