support no time (-t); use function to test file