R: xts timestamp differ from real data timestamp by 1 millisecond
问题 So I have the following data. tt <- structure(list(Timestamp = c("2018-03-01 09:51:59.969", "2018-03-01 09:51:59.969", "2018-03-01 09:51:59.970", "2018-03-01 09:51:59.971", "2018-03-01 09:51:59.987", "2018-03-01 09:51:59.988"), Mid_Px = c(30755.5, 30755, 30755.5, 30756, 30756.5, 30756.5)), .Names = c("Timestamp", "Mid_Px"), class = "data.frame", row.names = 85774:85779) which looks like this: Timestamp Mid_Px 85774 2018-03-01 09:51:59.969 30755.5 85775 2018-03-01 09:51:59.969 30755.0 85776