UV-visible absorption spectra of metallic clusters from TDDFT calculations