summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/datetime2
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2016-06-06 22:56:45 +0000
committerKarl Berry <karl@freefriends.org>2016-06-06 22:56:45 +0000
commit985766f184a837af9c74f1017fae3361446d28a0 (patch)
tree7539a50c20976e98bef315983691d57b22f83d2f /Master/texmf-dist/tex/latex/datetime2
parentb0ec485795614c8d2fc48393ce8414ebcb097b65 (diff)
datetime2 (5jun16)
git-svn-id: svn://tug.org/texlive/trunk@41296 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/datetime2')
-rw-r--r--Master/texmf-dist/tex/latex/datetime2/datetime2-calc.sty2
-rw-r--r--Master/texmf-dist/tex/latex/datetime2/datetime2.sty19
2 files changed, 16 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/latex/datetime2/datetime2-calc.sty b/Master/texmf-dist/tex/latex/datetime2/datetime2-calc.sty
index 4beb8e0c841..2973c635a22 100644
--- a/Master/texmf-dist/tex/latex/datetime2/datetime2-calc.sty
+++ b/Master/texmf-dist/tex/latex/datetime2/datetime2-calc.sty
@@ -39,7 +39,7 @@
%% Grave accent \` Left brace \{ Vertical bar \|
%% Right brace \} Tilde \~}
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{datetime2-calc}[2016/02/11 v1.4 (NLCT)]
+\ProvidesPackage{datetime2-calc}[2016/06/05 v1.5.1 (NLCT)]
\RequirePackage{pgfkeys}
\RequirePackage{pgfcalendar}
\newcount\@dtm@julianday
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