Neutrino signal of electron-capture supernovae from core collapse to cooling.