On 10/2/2024 10:50 PM, Yukai Chou wrote:
Hi all,

In the LuaTeX Reference Manual (v1.18), sec. 14.1.6 getcreationdate
(p. 286), the doc of pdf.getcreationdate() reads

     This function returns a string with the date in the format that
ends up in the pdf file, in this case  it’s: .

Notice the creation date of the manual itself is expected but missing.

The corresponding source are in luatex-backend.tex [1] but
unfortunately my ConTeXt knowledge is not enough to find a resolution
myself.

     This function returns a string with the date in the format that
ends up in the
     \PDF\ file, in this case it's: {\tttf \cldcontext{pdf.getcreationdate()}}.

Context doesn't use these date related methods so there's nothing to report.

It might have worked from context at some point but irr when the epoch related time stamping was added to luatex that we have to avoid in context all became a bit more fuzzy. I could of course overload pdf.getcreationdate in context but a pdf formatted string like that has little use.

[1] 
https://tug.org/svn/texlive/trunk/Master/texmf-dist/doc/luatex/base/luatex-backend.tex?revision=66784&pathrev=72381&view=markup#l110

Plain tex with

\directlua{
    texio.write_nl(pdf.getcreationdate())
}

prints this to the console

D:20241002234637+02'00'

So, it looks like there is no issue.

Hans

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
       tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------

Reply via email to