Periodic and almost periodic oscillations in a delay differential equation system with time-varying coefficients