summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2007-04-24 23:55:40 +0000
committerKarl Berry <karl@freefriends.org>2007-04-24 23:55:40 +0000
commita3b51f6f68d0fe50bab2eaf0a7734b46f31003b4 (patch)
treef73af399ba949efb552802336e44a6a1707897f6 /Master/texmf-dist/source
parentc65c25c59074eaa09621f4fd782362b2c5227e32 (diff)
datetime 2.51 (24apr07)
git-svn-id: svn://tug.org/texlive/trunk@4183 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source')
-rw-r--r--Master/texmf-dist/source/latex/datetime/datetime.dtx40
-rw-r--r--Master/texmf-dist/source/latex/datetime/datetime.ins2
2 files changed, 26 insertions, 16 deletions
diff --git a/Master/texmf-dist/source/latex/datetime/datetime.dtx b/Master/texmf-dist/source/latex/datetime/datetime.dtx
index 641a2b33013..5a2c06c745a 100644
--- a/Master/texmf-dist/source/latex/datetime/datetime.dtx
+++ b/Master/texmf-dist/source/latex/datetime/datetime.dtx
@@ -11,7 +11,7 @@
% -author "Nicola Talbot"
% -dir "source"
% datetime
-% Created on 2007/1/30 22:55
+% Created on 2007/4/21 19:13
%\fi
%\iffalse
%<*package>
@@ -58,12 +58,12 @@
%
%\RecordChanges
%\OnlyDescription
-%\def\docdate{30 Jan 2007}
+%\def\docdate{21 April 2007}
%
%\changes{v2.46}{30 Sep 2005}{'today defined using 'DeclareRobustCommand}
%\changes{v2.41}{22 Oct 2004}{'today defined using 'providecommand instead of 'renewcommand}
%
-% \title{datetime.sty v2.51: Formatting Current Date and
+% \title{datetime.sty v2.52: Formatting Current Date and
%Time}
% \author{Nicola L.C. Talbot}
% \date{\docdate}
@@ -662,7 +662,7 @@
% This section documents the code for \texttt{datetime.sty}
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{datetime}[2007/01/30 v2.51 Date Time Package]
+\ProvidesPackage{datetime}[2007/04/21 v2.52 Date Time Package]
% \end{macrocode}
%\texttt{fmtcount.sty} needs to be loaded here as it defines the command |\fmtord| which may be redefined later:
% \begin{macrocode}
@@ -814,7 +814,9 @@
\renewcommand*{\formatdate}[3]{%
\ifshowdow\dayofweekname{##1}{##2}{##3} the \fi
\@day=##1\relax\@month=##2\relax\@year=##3\relax
-\@Ordinalstring\@day\ of \monthname[\@month], \@Numberstring\@year}}
+\Ordinalstringnum{\@day}\ of \monthname[\@month],
+\Numberstringnum{\@year}%
+}}
% \end{macrocode}
% US format (as per original definition of |\today|)
% \begin{macrocode}
@@ -3867,8 +3869,8 @@ Month numbers should go from 1 to 12}%
% \begin{macrocode}
# File : datetime.perl
# Author : Nicola Talbot
-# Date : 17 Jan 2007
-# Version : 1.02
+# Date : 21 Apr 2007
+# Version : 1.03
# Description : LaTeX2HTML implementation of datetime package.
# set up default values for internal counters.
@@ -5226,14 +5228,6 @@ sub format_date{
local($br_id) = ++$global{'max_id'};
$str =~ s/{ORDINALDATE{DAY}}/\\ordinaldate${OP}$br_id${CP}$day${OP}$br_id${CP}/g;
- $str =~ s/{NUMBERSTRING{DAY}}/&get_numberstring($day)/eg;
- $str =~ s/{NUMBERSTRING{MONTH}}/&get_numberstring($month)/eg;
- $str =~ s/{NUMBERSTRING{YEAR}}/&get_numberstring($year)/eg;
-
- $str =~ s/{ORDINALSTRING{DAY}}/&get_ordinalstring($day)/eg;
- $str =~ s/{ORDINALSTRING{MONTH}}/&get_ordinalstring($month)/eg;
- $str =~ s/{ORDINALSTRING{YEAR}}/&get_ordinalstring($year)/eg;
-
$str =~ s/{NNUMBERSTRING{DAY}}/&get_Numberstring($day)/eg;
$str =~ s/{NNUMBERSTRING{MONTH}}/&get_Numberstring($month)/eg;
$str =~ s/{NNUMBERSTRING{YEAR}}/&get_Numberstring($year)/eg;
@@ -5242,6 +5236,22 @@ sub format_date{
$str =~ s/{OORDINALSTRING{MONTH}}/&get_Ordinalstring($month)/eg;
$str =~ s/{OORDINALSTRING{YEAR}}/&get_Ordinalstring($year)/eg;
+ $str =~ s/{CAPNUMBERSTRING{DAY}}/uc(&get_numberstring($day))/eg;
+ $str =~ s/{CAPNUMBERSTRING{MONTH}}/uc(&get_numberstring($month))/eg;
+ $str =~ s/{CAPNUMBERSTRING{YEAR}}/uc(&get_numberstring($year))/eg;
+
+ $str =~ s/{CAPORDINALSTRING{DAY}}/uc(&get_ordinalstring($day))/eg;
+ $str =~ s/{CAPORDINALSTRING{MONTH}}/uc(&get_ordinalstring($month))/eg;
+ $str =~ s/{CAPORDINALSTRING{YEAR}}/uc(&get_ordinalstring($year))/eg;
+
+ $str =~ s/{NUMBERSTRING{DAY}}/&get_numberstring($day)/eg;
+ $str =~ s/{NUMBERSTRING{MONTH}}/&get_numberstring($month)/eg;
+ $str =~ s/{NUMBERSTRING{YEAR}}/&get_numberstring($year)/eg;
+
+ $str =~ s/{ORDINALSTRING{DAY}}/&get_ordinalstring($day)/eg;
+ $str =~ s/{ORDINALSTRING{MONTH}}/&get_ordinalstring($month)/eg;
+ $str =~ s/{ORDINALSTRING{YEAR}}/&get_ordinalstring($year)/eg;
+
$str;
}
diff --git a/Master/texmf-dist/source/latex/datetime/datetime.ins b/Master/texmf-dist/source/latex/datetime/datetime.ins
index afd34260cc5..44e541c8675 100644
--- a/Master/texmf-dist/source/latex/datetime/datetime.ins
+++ b/Master/texmf-dist/source/latex/datetime/datetime.ins
@@ -1,4 +1,4 @@
-% datetime.ins generated using makedtx version 0.91b 2007/1/30 22:55
+% datetime.ins generated using makedtx version 0.91b 2007/4/21 19:13
\input docstrip
\preamble