clean data by time