I have a problem in R with changing seconds with decimal places into a date.
Example:
seconds <- c(1124925778.888, 1124925778.889)
> as.POSIXct(seconds, origin = "1970-01-01 00:00:00.000")
[1] "2005-08-25 01:22:58.888 CEST" "2005-08-25 01:22:58.888 CEST"
As you can see these two numbers (which represent seconds) have different decimal places but are shown as this same date.
Could you tell me why it happens and how to parse it correctly?
My version of R is 3.4.3.