Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get full timestamp in XeTeX through \creationdate #395

Closed
muzimuzhi opened this issue May 26, 2024 · 1 comment
Closed

Get full timestamp in XeTeX through \creationdate #395

muzimuzhi opened this issue May 26, 2024 · 1 comment

Comments

@muzimuzhi
Copy link
Contributor

Code comment on line 1578 of minted.dtx@1ac8e25e says

Under XeTeX, a derived timestamp (via |\year|, |\month|, |\day|, |\time|) with only minute precision.

Actually XeTeX provides \creationdate since TeX Live 2019, which is equivalent to \pdfcreationdate in pdfTeX.

Since \pdfcreationdate (or its equivalence) is one of the primitives required by l3kernel and l3kernel is bundled in the LaTeX2e format, \creationdate is always available in recent LaTeX2e.

Also the expl3 provides a cross-engine string variable \c_sys_timestamp_str which holds the full timestamp of current job. But it's relatively new (needs l3kernel 2023-08-29).

@gpoore
Copy link
Owner

gpoore commented Jun 11, 2024

Thanks for the suggestions! I've switched to \creationdate, and left a note in the code documentation to use \c_sys_timestamp_str once it has been available for longer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants