Time-dependent invariant sets in system dynamics