Sufficient conditions for affine time-delay systems with state space constraints are derived, and it is shown that the results are applicable to solve a control problem involving a novel type of functional constraint. The discrete-time version of sufficiency is also obtained. Numerical examples are given to compare the functional control constraint with the conventional pointwise control constraint.