Am 09.10.2018 um 16:56 schrieb Russell, George:
Dear R developers,
I have found a minute bug in R-3.5.1 (Windows version), about how times not an
exact number of seconds are displayed.
as.POSIXct("1969-01-01 01:00")+0.3
[1] "1969-01-01 01:00:01 CET"
as.POSIXct("1970-01-01 01:00")+0.3
[1] "1
Here on my Mac it looks worse: not a rounding difference, but an off-by-one
error for fractional seconds before 1970, looks like the conversion to POSIXlt
is doing something wrong:
Options(digits=12)
as.numeric(as.POSIXlt(as.POSIXct('1969-01-01')))
[1] -31539600
# As expected
as.numeric(as.POSIX
Dear R developers,
I have found a minute bug in R-3.5.1 (Windows version), about how times not an
exact number of seconds are displayed.
> as.POSIXct("1969-01-01 01:00")+0.3
[1] "1969-01-01 01:00:01 CET"
> as.POSIXct("1970-01-01 01:00")+0.3
[1] "1970-01-01 01:00:00 CET"
So for 1969, adding 0.3 o