summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/datetime2/datetime2.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/datetime2/datetime2.sty')
-rw-r--r--Master/texmf-dist/tex/latex/datetime2/datetime2.sty19
1 files changed, 15 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/latex/datetime2/datetime2.sty b/Master/texmf-dist/tex/latex/datetime2/datetime2.sty
index 525675ebf6b..dc0356f7fb5 100644
--- a/Master/texmf-dist/tex/latex/datetime2/datetime2.sty
+++ b/Master/texmf-dist/tex/latex/datetime2/datetime2.sty
@@ -39,10 +39,21 @@
%% Grave accent \` Left brace \{ Vertical bar \|
%% Right brace \} Tilde \~}
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{datetime2}[2016/02/11 v1.4 (NLCT) date and time formats]
+\ProvidesPackage{datetime2}[2016/06/05 v1.5.1 (NLCT) date and time formats]
\RequirePackage{tracklang}
\RequirePackage{etoolbox}
\RequirePackage{xkeyval}[2006/11/18]
+\ifdef\pdfcreationdate
+{%
+ \edef\dtm@pdfcreationdate{\pdfcreationdate}%
+}%
+{%
+ \ifdef\pdffeedback
+ {%
+ \edef\dtm@pdfcreationdate{\pdffeedback creationdate}%
+ }%
+ {}%
+}
\newcommand*{\dtm@yearmonthsep}{-}
\newcommand*{\dtm@monthdaysep}{-}
\newcommand*{\dtm@dayyearsep}{-}
@@ -86,7 +97,7 @@
\define@boolkey{datetime2.sty}[DTM]{showzone}[true]{}
\define@boolkey{datetime2.sty}[DTM]{showisoZ}[true]{}
\DTMshowisoZtrue
-\ifdef\pdfcreationdate
+\ifdef\dtm@pdfcreationdate
{%
\DTMshowsecondstrue
\DTMshowzonetrue
@@ -221,7 +232,7 @@
\cslet{@dtm@#1@TZhour}{0}%
\cslet{@dtm@#1@TZminute}{0}%
}
-\ifdef\pdfcreationdate
+\ifdef\dtm@pdfcreationdate
{%
\def\@dtm@parsepdfdatetime#1:#2#3#4#5#6#7#8#9{%
\def\@dtm@year{#2#3#4#5}%
@@ -246,7 +257,7 @@
\def\@dtm@timezonehour{#1}%
\def\@dtm@timezoneminute{#2}%
}%
- \expandafter\@dtm@parsepdfdatetime\pdfcreationdate\@dtm@endparsepdfdatetime
+ \expandafter\@dtm@parsepdfdatetime\dtm@pdfcreationdate\@dtm@endparsepdfdatetime
\let\@dtm@currentyear\@dtm@year
\let\@dtm@currentmonth\@dtm@month
\let\@dtm@currentday\@dtm@day