tzselect: minor improvement for 'input/output through one function'