1

I'm using reticulate package to write r and python. When I create dates variable in python and load them in r, with reticulate package, the dates are different.

for example:

as.POSIXct(py_to_r(r_to_py(as.POSIXct("2020-01-04 06:05:00"))))

will give me: "2020-01-04 04:05:00 UTC"

we can see that the hours that comes from python into r are two hours different.

0 Answers0