For example, test 168.1, I have to set the locale to "C" in order to parse the datetimes correctly (otherwise they are all NAs) because my default locale is Chinese (Simplified)_People's Republic of China.936.
Another example is the test 1966, it simply throws an error on my computer complains the file name is invalid.
|
# IDateTime conversion methods that ggplot2 uses (it calls as.data.frame method) |
|
datetimes = c("2011 NOV18 09:29:16", "2011 NOV18 10:42:40", "2011 NOV18 23:47:12", |
|
"2011 NOV19 01:06:01", "2011 NOV19 11:35:34", "2011 NOV19 11:51:09") |
|
DT = IDateTime(strptime(datetimes,"%Y %b%d %H:%M:%S")) |
|
test(168.1, DT[,as.data.frame(itime)], data.frame(V1=as.ITime(x<-c("09:29:16","10:42:40","23:47:12","01:06:01","11:35:34","11:51:09")))) |
|
f = tempfile("\u00f6"); cat("3.14", file = f) |
|
fn = enc2native(f); f8 = enc2utf8(f) |
|
test(1966.1, fread(fn), data.table(V1=3.14)) |
For example, test 168.1, I have to set the locale to "C" in order to parse the
datetimescorrectly (otherwise they are all NAs) because my default locale is Chinese (Simplified)_People's Republic of China.936.Another example is the test 1966, it simply throws an error on my computer complains the file name is invalid.
data.table/inst/tests/tests.Rraw
Lines 468 to 472 in 676c9b2
data.table/inst/tests/tests.Rraw
Lines 13012 to 13014 in 676c9b2