The earth's average rotation period relative to the fixed stars is 86,164.098 903 691 seconds equal to one solar day. This translates to 24 hours equatorial time. One revolution takes approximately 364 to 365 days which is equal to 1 year.
A rotation of the earth on its axis is defined as one day. A revolution of the earth in it's orbit around the sun is basically one year, but actually is slightly longer - just a few seconds less than 165.25 days.