It takes 24 hours for the Earth to rotate around its axis. It talkes 365 days for the Earth to rotate around the sun.