What is the difference between the sun rotating and revolving?

Rotating means to take 1 full spin while moving , wich takes 24 hrs. Revolving means to revolve around the sun in which takes 365 days.