[R] is.na(strptime (...)) return TRUE on FreeBSD

Jinsong Zhao j@zh@o @end|ng |rom ye@h@net
Thu May 11 16:15:49 CEST 2023


Hi there,

The following codes may cause the problem in R 4.3.0 on FreeBSD in my 
last post: Error in as.POSIXlt.character(x, tz, ...)

 > (d <- strptime("1970-01-01 12:00:00 UTC", "%Y-%m-%d %H:%M:%OS", tz = ""))
[1] "1970-01-01 12:00:00 CST"
 > is.na(d)
[1] TRUE

In R 4.3.0 on windows,

 > (d <- strptime("1970-01-01 12:00:00 UTC", "%Y-%m-%d %H:%M:%OS", tz = ""))
[1] "1970-01-01 12:00:00 CST"
 > is.na(d)
[1] FALSE

The only difference is the result of is.na().

Best,
Jinsong



More information about the R-help mailing list