Ordinary differential equations and systems with time-dependent discontinuity sets