handle time types