R prints POSIXct milliseconds wrong

> as.POSIXct("2000-01-01 00:00:00.002", tz = "UTC")
[1] "2000-01-01 00:00:00.001 UTC"

formatting it yields

> as.POSIXct("2000-01-01 00:00:00.002", tz = "UTC") |>
+   format("%Y-%m-%d %H:%M:%OS6")
[1] "2000-01-01 00:00:00.001999"

Is this a configuration error? windows? R 4.3.1

Thank you!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.