add time formating for day, week, month, add cuting the line if there is gap in data