summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/datetime2/samples/datetime2-sample-xe.tex
blob: 09c2a332985ffe97ef20a0750d685c95fdd35d0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
% arara: xelatex: {shell: on}
\documentclass{article}

\usepackage{texosquery}
% Disable texosquery:
%\TeXOSQueryDryRuntrue 
\usepackage{datetime2}

% If you get an error that looks like:
% ! I can't find file `"|texosquery -n"'.
% Then the shell escape has been restricted and texosquery
% wasn't allowed to run.

\begin{document}
\DTMnow.

\DTMsavefilemoddate{moddate}{\jobname.tex}
File \texttt{\jobname.tex} last modified: \DTMuse{moddate}.

\end{document}