[ts.parse] refactor _ts_date_to_path