Seem to be overally precise presumably because {pdftools} is coercing them into an inappropriate datetime class like POSIXlt instead of datetimeoffset():
> library(grid)
> f <- tempfile(fileext = ".pdf")
pdf(f, onefile = TRUE)
grid.text("Page 1")
grid.newpage()
grid.text("Page 2")
invisible(dev.off())
> get_docinfo(f)[[1]] |> print()
Author: NULL
CreationDate: 2022-10-24T05:35:29.0-07:00[America/Los_Angeles]
Creator: R
Producer: R 4.2.1
Title: R Graphics Output
Subject: NULL
Keywords: NULL
ModDate: 2022-10-24T05:35:29.0-07:00[America/Los_Angeles]
> get_docinfo_pdftools(f)
$`/tmp/Rtmp6HCHuw/file15f81d3d59a753.pdf`
Author: NULL
CreationDate: 2022-10-24T05:35:29.0-07:00[America/Los_Angeles]
Creator: R
Producer: R 4.2.1
Title: R Graphics Output
Subject: NULL
Keywords: NULL
ModDate: 2022-10-24T05:35:29.0-07:00[America/Los_Angeles]
> get_docinfo_exiftool(f)
$`/tmp/Rtmp6HCHuw/file15f81d3d59a753.pdf`
Author: NULL
CreationDate: 2022-10-24T12:35:29
Creator: R
Producer: R 4.2.1
Title: R Graphics Output
Subject: NULL
Keywords: NULL
ModDate: 2022-10-24T12:35:29
> get_docinfo_pdftk(f)
$`/tmp/Rtmp6HCHuw/file15f81d3d59a753.pdf`
Author: NULL
CreationDate: 2022-10-24T12:35:29
Creator: R
Producer: R 4.2.1
Title: R Graphics Output
Subject: NULL
Keywords: NULL
ModDate: 2022-10-24T12:35:29
{pdftools}
is coercing them into an inappropriate datetime class like POSIXlt instead ofdatetimeoffset()
: