Learning and certification of local time-dependent quantum dynamics and noise