generalized timeSelect template