Time Dependent Radiative Transfer: Application On Core Collapse Sne And Cosmic Recombination