Type coercion for time