What is the relationship between people's daily living time in one day and the earth's rotation? Is it the accurate time for the earth to rotate for one cycle

What is the relationship between people's daily living time in one day and the earth's rotation? Is it the accurate time for the earth to rotate for one cycle

The essence of the problem is the difference between sun day and star day. The rotation of the earth produces the alternation of day and night. People work at sunrise and rest at sunset. The rising and setting of the sun is our daily time standard. For example, the highest time of the sun in a day is called 12 o'clock. There are 24 hours in the whole day, which is called "sun day"