diff options
author | Norbert Preining <norbert@preining.info> | 2023-08-30 03:01:17 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2023-08-30 03:01:17 +0000 |
commit | 4fee29360f7566a474b6143951b0744fa151edc9 (patch) | |
tree | 1af77d3ca21368f054b09f30dd60e8028a91be62 /macros/latex/contrib/l3kernel/l3sys.dtx | |
parent | 64e26532c685fd24d6983508c6239e3c268b810b (diff) |
CTAN sync 202308300301
Diffstat (limited to 'macros/latex/contrib/l3kernel/l3sys.dtx')
-rw-r--r-- | macros/latex/contrib/l3kernel/l3sys.dtx | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/macros/latex/contrib/l3kernel/l3sys.dtx b/macros/latex/contrib/l3kernel/l3sys.dtx index 5ff23b4775..5717e60e73 100644 --- a/macros/latex/contrib/l3kernel/l3sys.dtx +++ b/macros/latex/contrib/l3kernel/l3sys.dtx @@ -43,7 +43,7 @@ % }^^A % } % -% \date{Released 2023-08-11} +% \date{Released 2023-08-29} % % \maketitle % @@ -79,6 +79,11 @@ % \end{texnote} % \end{variable} % +% \begin{variable}[added = 2023-08-27]{\c_sys_timestamp_str} +% The timestamp for the current job: the format is as described for +% \cs{file_timestamp:n}. +% \end{variable} +% % \section{Engine} % % \begin{function}[added = 2015-09-07, EXP, pTF] @@ -928,6 +933,23 @@ end % \end{macrocode} % \end{variable} % +% \begin{variable}{\c_sys_timestamp_str} +% A simple expansion: Lua\TeX{} chokes if we use \tn{pdffeedback} here, +% hence the direct use of Lua. Notice that the function there is in the +% \texttt{pdf} library but isn actually tied to PDF. +% \begin{macrocode} +\@@_everyjob:n + { + \str_const:Nx \c_sys_timestamp_str + { + \cs_if_exist:NTF \tex_directlua:D + { \tex_directlua:D { tex.print(pdf.getcreationdate()) } } + { \tex_creationdate:D } + } + } +% \end{macrocode} +% \end{variable} +% % \subsubsection{Random numbers} % % \begin{macro}[EXP]{\sys_rand_seed:} |