On Carnot's Theorem in Time Dependent Impulsive Mechanics