summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/datetime
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2007-08-24 18:42:16 +0000
committerKarl Berry <karl@freefriends.org>2007-08-24 18:42:16 +0000
commitfabf181c6946e1e5ea931f003df726c9c1c553b8 (patch)
tree9f7a87be2b2b7a566eb69fbb16faf269252363de /Master/texmf-dist/doc/latex/datetime
parent636d13a66cc63625779c228dd77846fb5f99c39e (diff)
datetime 2.55 (20aug07)
git-svn-id: svn://tug.org/texlive/trunk@4803 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/datetime')
-rw-r--r--Master/texmf-dist/doc/latex/datetime/CHANGES9
-rw-r--r--Master/texmf-dist/doc/latex/datetime/README12
-rw-r--r--Master/texmf-dist/doc/latex/datetime/datetime-manual.html (renamed from Master/texmf-dist/doc/latex/datetime/manual.html)439
-rw-r--r--Master/texmf-dist/doc/latex/datetime/datetime.pdfbin160888 -> 170340 bytes
-rw-r--r--Master/texmf-dist/doc/latex/datetime/datetime.perl121
-rw-r--r--Master/texmf-dist/doc/latex/datetime/dt-lang.tex20
-rw-r--r--Master/texmf-dist/doc/latex/datetime/dt-sampl.tex53
7 files changed, 332 insertions, 322 deletions
diff --git a/Master/texmf-dist/doc/latex/datetime/CHANGES b/Master/texmf-dist/doc/latex/datetime/CHANGES
index 4c7b14e1d29..e09bc06c7f4 100644
--- a/Master/texmf-dist/doc/latex/datetime/CHANGES
+++ b/Master/texmf-dist/doc/latex/datetime/CHANGES
@@ -1,5 +1,14 @@
datetime.sty history
+Version 2.55:
+
+ * fixed bug preventing multilingual support
+ * fixed copyright text
+
+Version 2.54: added check for british babel setting.
+
+Version 2.53: added checks for UKenglish and USenglish.
+
Version 2.52: fixed bug in \textdate arising from change in
fmtcount internals.
diff --git a/Master/texmf-dist/doc/latex/datetime/README b/Master/texmf-dist/doc/latex/datetime/README
index 556a0154b69..66fffe3d3a8 100644
--- a/Master/texmf-dist/doc/latex/datetime/README
+++ b/Master/texmf-dist/doc/latex/datetime/README
@@ -1,11 +1,14 @@
-LaTeX Package : datetime v 2.52
+LaTeX Package : datetime v 2.55
-Last Modified : 21 April 2007
+Last Modified : 20 Aug 2007
Author : Nicola Talbot
Files : datetime.dtx - documented source file
datetime.ins - installation script
+ datetime.perl - LaTeX2HTML style file
+ dt-sampl.tex - sample files
+ dt-lang.tex /
The package datetime.sty provides various different
@@ -18,15 +21,14 @@ To extract the code do:
latex datetime.ins
-This will create datetime.sty, lots of .def files,
-datetime.perl files and one sample file: dt-sampl.tex.
+This will create datetime.sty and lots of dt-*.def files,
(NB it may take a while to extract if you have a slow computer!)
Move the .sty and .def files to somewhere LaTeX will find it
(e.g. texmf/tex/latex/datetime/) and remember to update the TeX
database.
-Copy the .perl file to somewhere where LaTeX2HTML will find it
+Copy the datetime.perl file to somewhere where LaTeX2HTML will find it
(e.g. latex2html/styles/).
To extract the documentation do:
diff --git a/Master/texmf-dist/doc/latex/datetime/manual.html b/Master/texmf-dist/doc/latex/datetime/datetime-manual.html
index eb0dd84c4eb..48ce608fd40 100644
--- a/Master/texmf-dist/doc/latex/datetime/manual.html
+++ b/Master/texmf-dist/doc/latex/datetime/datetime-manual.html
@@ -7,8 +7,8 @@ original version by: Nikos Drakos, CBLU, University of Leeds
Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
<HTML>
<HEAD>
-<TITLE>datetime.sty v2.52: Formatting Current Date and Time</TITLE>
-<META NAME="description" CONTENT="datetime.sty v2.52: Formatting Current Date and Time">
+<TITLE>datetime.sty v2.55: Formatting Current Date and Time</TITLE>
+<META NAME="description" CONTENT="datetime.sty v2.55: Formatting Current Date and Time">
<META NAME="keywords" CONTENT="manual">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">
@@ -21,23 +21,24 @@ original version by: Nikos Drakos, CBLU, University of Leeds
</HEAD>
<BODY >
-<A NAME="tex2html1"
- HREF="http://theoval.cmp.uea.ac.uk/~nlct/">Dr Nicola Talbot</A>
-|
-<A NAME="tex2html2"
- HREF="http://www.cmp.uea.ac.uk/">School of Computing Sciences</A>
-|
-<A NAME="tex2html3"
- HREF="http://www.uea.ac.uk/">University of East Anglia</A>
<P>
-<P>
-
- <H1 ALIGN="CENTER">datetime.sty v2.52: Formatting Current Date and
+ <H1 ALIGN="CENTER">datetime.sty v2.55: Formatting Current Date and
Time</H1>
-<P ALIGN="CENTER"><STRONG>Nicola L.C. Talbot</STRONG></P>
-<P ALIGN="CENTER"><STRONG>21 April 2007</STRONG></P>
+<P ALIGN="CENTER"><STRONG>Nicola L. C. Talbot
+<BR>
+<BR>
+School of Computing Sciences
+<BR>
+University of East Anglia
+<BR>
+Norwich. NR4 7TJ.
+<BR>
+United Kingdom.
+<BR> <TT><A NAME="tex2html1"
+ HREF="http://theoval.cmp.uea.ac.uk/~nlct/">http://theoval.cmp.uea.ac.uk/~nlct/</A></TT></STRONG></P>
+<P ALIGN="CENTER"><STRONG>20 Aug 2007</STRONG></P>
<BR>
<H2><A NAME="SECTION00010000000000000000">
@@ -46,32 +47,30 @@ Contents</A>
<!--Table of Contents-->
<UL>
-<LI><A NAME="tex2html29"
+<LI><A NAME="tex2html24"
HREF="manual.html#SECTION00020000000000000000">Introduction</A>
-<LI><A NAME="tex2html30"
+<LI><A NAME="tex2html25"
HREF="manual.html#SECTION00030000000000000000">Date Declarations</A>
-<LI><A NAME="tex2html31"
+<LI><A NAME="tex2html26"
HREF="manual.html#SECTION00040000000000000000">Time Commands</A>
-<LI><A NAME="tex2html32"
+<LI><A NAME="tex2html27"
HREF="manual.html#SECTION00050000000000000000">Formating Dates</A>
-<LI><A NAME="tex2html33"
+<LI><A NAME="tex2html28"
HREF="manual.html#SECTION00060000000000000000">Defining New Date Formats</A>
-<LI><A NAME="tex2html34"
+<LI><A NAME="tex2html29"
HREF="manual.html#SECTION00070000000000000000">Saving Dates</A>
-<LI><A NAME="tex2html35"
+<LI><A NAME="tex2html30"
HREF="manual.html#SECTION00080000000000000000">Predefined Names</A>
-<LI><A NAME="tex2html36"
+<LI><A NAME="tex2html31"
HREF="manual.html#SECTION00090000000000000000">Package Options</A>
-<LI><A NAME="tex2html37"
+<LI><A NAME="tex2html32"
HREF="manual.html#SECTION000100000000000000000">Multilingual Support</A>
-<LI><A NAME="tex2html38"
+<LI><A NAME="tex2html33"
HREF="manual.html#SECTION000110000000000000000">Configuration File</A>
-<LI><A NAME="tex2html39"
+<LI><A NAME="tex2html34"
HREF="manual.html#SECTION000120000000000000000">LaTeX2HTML styles</A>
-<LI><A NAME="tex2html40"
+<LI><A NAME="tex2html35"
HREF="manual.html#SECTION000130000000000000000">Troubleshooting</A>
-<LI><A NAME="tex2html41"
- HREF="manual.html#SECTION000140000000000000000">Contact Details</A>
</UL>
<!--End of Table of Contents-->
<H1><A NAME="SECTION00020000000000000000">
@@ -79,7 +78,7 @@ Introduction</A>
</H1>
The <TT>datetime</TT> package is a LaTeX2e package that
-provides various different formats for <code>\today</code>,
+provides various different formats for <TT>&#092;today</TT>,
and provides commands for displaying the current time.
If you only want the
time commands but not the date changing commands, you can pass
@@ -89,8 +88,8 @@ the option <TT>nodate</TT> to the package.
Since version 2.4, the <TT>datetime</TT> package has been
separated into two packages: <TT>datetime</TT> and
<TT>fmtcount</TT>. When I originally created this package,
-I defined the commands, <code>\ordinal</code> etc which could be used
-in the definition of <code>\today</code>. Since then, I have extended
+I defined the commands, <TT>&#092;ordinal</TT> etc which could be used
+in the definition of <TT>&#092;today</TT>. Since then, I have extended
the number of commands available that can be used to display the
value of a LaTeX counter, however it seems more appropriate to
define all these counter-related commands in a separate package.
@@ -101,7 +100,8 @@ be installed.
<P>
As from version 2.42, the <TT>datetime</TT> package is now
compatible with <TT>babel</TT>, however you must load the
-<TT>datetime</TT> package <I>after</I> the <TT>babel</TT> package. For example:
+<TT>datetime</TT> package <I>after</I> the <TT>babel</TT> package.
+For example:
<PRE>
\usepackage[francais]{babel}
\usepackage{datetime}
@@ -113,7 +113,7 @@ compatible with <TT>babel</TT>, however you must load the
Date Declarations</A>
</H1>
There are various declarations that change the effect of
-<code>\today</code>. The change can be localised by placing the
+<TT>&#092;today</TT>. The change can be localised by placing the
declaration within a group.
<P>
@@ -153,7 +153,13 @@ The declaration <code>\textdate</code> will redefine
<code>\today</code> to produce the current date displayed in the form:
Wednesday the Eighth of March, Two Thousand if the package option
<TT>dayofweek</TT> is used, or Eighth of March, Two Thousand if
-the package option <TT>nodayofweek</TT> is used.
+the package option <TT>nodayofweek</TT> is used. Note that
+<code>\textdate</code> is defined for use with English, it won't
+look right if it is used when another language has been
+selected<A NAME="tex2html2"
+ HREF="#foot411"><SUP>1</SUP></A>. If you want to define a similar command for
+another language, you will first need to check that the
+<TT>fmtcount</TT> package supports that language.
<P>
@@ -205,11 +211,11 @@ Time Commands</A>
The current time is displayed using the command
<code>\currenttime</code>.
- The format can be changed using the declaration
-<code>\settimeformat{</code><I>style</I><code>}</code>,
- where <I>style</I> is the name of the format<A NAME="tex2html4"
- HREF="#foot382"><SUP>1</SUP></A>. Available
-formats are:
+ The format can be changed using the declaration
+<TT>&#092;settimeformat{</TT><EM>style</EM><TT>}</TT>, where <I>style</I> is the name of the
+format<A NAME="tex2html3"
+ HREF="#foot416"><SUP>2</SUP></A>. Available formats
+are:
<DL>
<DT><STRONG>xxivtime</STRONG></DT>
<DD>Twenty-four hour time in the form 22:28 (Default)
@@ -219,33 +225,29 @@ formats are:
</DD>
<DT><STRONG>oclock</STRONG></DT>
<DD>Displays the current time as a string, e.g.
-Twenty-Eight minutes past Ten in the afternoon.<A NAME="tex2html5"
- HREF="#foot134"><SUP>2</SUP></A>
+Twenty-Eight minutes past Ten in the afternoon.
</DD>
</DL>
<P>
New time formats can be defined using the command:
<BR>
-<BR><code>\newtimeformat{</code><I>name</I><code>}{</code><I>format</I><code>}</code>
+<BR><TT>&#092;newtimeformat{</TT><EM>name</EM><TT>}{</TT><EM>format</EM><TT>}</TT>
<BR>
<BR>
where <I>name</I> is the name of the new format (used in
-<code>\settimeformat</code>), and <I>format</I> is how to format the
+<TT>&#092;settimeformat</TT>), and <I>format</I> is how to format the
time. Within <I>format</I> you can use the counters
<TT>HOUR</TT> (number of hours after midnight), <TT>MINUTE</TT>
(number of minutes past the hour), <TT>HOURXII</TT> (number of
-hours after midnight/midday), <TT>TOHOUR</TT> (the next hour)
- and <TT>TOMINUTE</TT> (number of minutes to the next hour), and
-the corresponding commands:
- <code>\THEHOUR</code>,
-<code>\THEMINUTE</code>,
-<code>\THEHOURXII</code>,
-<code>\THETOHOUR</code> and
-<code>\THETOMINUTE</code>.
+hours after midnight/midday), <TT>TOHOUR</TT> (the next hour) and
+<TT>TOMINUTE</TT> (number of minutes to the next hour), and the
+corresponding commands: <TT>&#092;THEHOUR</TT>, <TT>&#092;THEMINUTE</TT>,
+<TT>&#092;THEHOURXII</TT>, <TT>&#092;THETOHOUR</TT> and <TT>&#092;THETOMINUTE</TT>.
<P>
-For example, to define a new time format that uses a dot instead of a colon:
+For example, to define a new time format that uses a dot instead of a
+colon:
<PRE>
\newtimeformat{dottime}{\twodigit{\THEHOUR}.\twodigit{\THEMINUTE}}
</PRE>
@@ -257,21 +259,22 @@ You then need to switch to this new format before you can use it:
<P>
As from version 2.43, if you only want to change the separator,
-you can simply redefine <code>\timeseparator</code>
+you can simply redefine <TT>&#092;timeseparator</TT>
instead of defining a new time format. For example:
<PRE>
\renewcommand{\timeseparator}{.}
</PRE>
-The <TT>xxivtime</TT> format will now work like the <TT>dottime</TT> format defined above.
+The <TT>xxivtime</TT> format will now work like the <TT>dottime</TT>
+format defined above.
<P>
<H1><A NAME="SECTION00050000000000000000">
Formating Dates</A>
</H1>
-
- The command <code>\pdfdate</code><A NAME="tex2html6"
- HREF="#foot175"><SUP>3</SUP></A> prints the date in the format required for
+
+ The command <code>\pdfdate</code><A NAME="tex2html4"
+ HREF="#foot148"><SUP>3</SUP></A> prints the date in the format required for
PDF files, e.g. if the date is 1 May 2004 and time is
22:02, <code>\pdfdate</code> will print 20040501220200. The reason
this date format is separate from all the others is because the
@@ -284,7 +287,7 @@ Example:
/Author (Me)
/Title (A Sample Document)
/CreationDate (D:20040501215500)
- /ModificationDate (D:\pdfdate)
+ /ModDate (D:\pdfdate)
}
</PRE>
@@ -303,7 +306,7 @@ example, <code>\monthname[6]</code> will produced the output: June.
<P>
The day of the week is computed using the algorithm documented at
- <TT><A NAME="tex2html7"
+ <TT><A NAME="tex2html5"
HREF="http://userpages.wittenburg.edu/bshelburne/Comp150/DayOfWeek.htm">http://userpages.wittenburg.edu/bshelburne/Comp150/DayOfWeek.htm</A></TT>.
This algorithm works for any date between 1<SUP>st</SUP>
Jan, 1901 and 31<SUP>st</SUP> Dec, 2099.
@@ -311,12 +314,13 @@ Jan, 1901 and 31<SUP>st</SUP> Dec, 2099.
<P>
- <code>\dayofweekname{</code><I>day</I><code>}{</code><I>month</I><code>}{</code><I>year</I><code>}</code> prints the
+<TT>&#092;dayofweekname{</TT><EM>day</EM><TT>}{</TT><EM>month</EM><TT>}{</TT><EM>year</EM><TT>}</TT> prints the
day of week for the specified date. For example,
<code>\dayofweekname{31}{10}{2002}</code>
will produce the output: Thursday.
<BR>
- <code>\shortdayofweekname{</code><I>day</I><code>}{</code><I>month</I><code>}{</code><I>year</I><code>}</code> prints the abbreviated name for the
+<TT>&#092;shortdayofweekname</TT><I>day</I><TT>{</TT><EM>month</EM><TT>}{</TT><EM>year</EM><TT>}</TT> prints the
+abbreviated name for the
day of week for the specified date. For example
<BR> <code>\shortdayofweekname{31}{10}{2002}</code>
<BR>
@@ -339,33 +343,33 @@ package:
</PRE>
<P>
-The command <code>\ordinaldate{</code><I>number</I><code>}</code>
+The command <TT>&#092;ordinaldate{</TT><EM>number</EM><TT>}</TT>
displays <I>number</I> as a date-type ordinal. If the
current language is English, this will simply pass
-the argument to <code>\ordinalnum</code> (defined in the
+the argument to <TT>&#092;ordinalnum</TT> (defined in the
<TT>fmtcount</TT> package),
if the current language is Breton, Welsh or French, a superscript
will only be added if <I>number</I> is 1, otherwise only
<I>number</I> will be displayed.
<P>
-The macro <code>\formatdate{</code><I>day</I><code>}{</code><I>month</I><code>}{</code><I>year</I><code>}</code><A NAME="tex2html8"
- HREF="#foot384"><SUP>4</SUP></A> formats
- the specified date according to the current format of
-<code>\today</code><A NAME="tex2html9"
- HREF="#foot385"><SUP>5</SUP></A>. (Arguments
- must all be integers.) For example, in combination with
+The macro
+<TT>&#092;formatdate{</TT><EM>day</EM><TT>}{</TT><EM>month</EM><TT>}{</TT><EM>year</EM><TT>}</TT><A NAME="tex2html6"
+ HREF="#foot417"><SUP>4</SUP></A> formats the specified date according to
+the current format of <TT>&#092;today</TT><A NAME="tex2html7"
+ HREF="#foot421"><SUP>5</SUP></A>.
+(Arguments must all be integers.) For example, in combination with
<code>\longdate</code>, the command
-<BR><code>\formatdate{27}{9}{2004}</code>
-<BR>
-will produce the output: Monday 27<SUP>th</SUP>
-September, 2004.
+<PRE>
+\formatdate{27}{9}{2004}
+</PRE>
+will produce the output: Monday 27<SUP>th</SUP> September,
+2004.
<P>
You can ensure that a number is displayed with at least two
digits by using the command
-<code>\twodigit{</code><I>num</I><code>}</code><A NAME="tex2html10"
- HREF="#foot239"><SUP>6</SUP></A>.
+<TT>&#092;twodigit{</TT><EM>num</EM><TT>}</TT>.
This is of use if you want to define your own date or time
formats.
@@ -379,20 +383,21 @@ Defining New Date Formats
<P>
New date formats can be defined using the command:
<BR>
-<BR> <code>\newdateformat{</code><I>name</I><code>}{</code><I>format</I><code>}</code>
+<BR> <TT>&#092;newdateformat{</TT><EM>name</EM><TT>}{</TT><EM>format</EM><TT>}</TT>
<BR>
<BR>
where <I>name</I> is the name of the new format, and
<I>format</I> is how to format the date. Within the
- argument <I>format</I> you can use the commands <code>\THEDAY</code>,
-<code>\THEMONTH</code>
- and <code>\THEYEAR</code> to represent the relevant day, month and
+ argument <I>format</I> you can use the commands <TT>&#092;THEDAY</TT>,
+<TT>&#092;THEMONTH</TT>
+ and <TT>&#092;THEYEAR</TT> to represent the relevant day, month and
year, or you can use the counters
<TT>DAY</TT>, <TT>MONTH</TT> and <TT>YEAR</TT> if you want to
-use <code>\ordinal</code> etc. Once you have defined the
- new date format, you can then switch to it using the declaration <code>\</code><I>name</I>
+use <TT>&#092;ordinal</TT> etc. Once you have defined the
+ new date format, you can then switch to it using the declaration
+<code>\</code><I>name</I>
(i.e. the name you specified preceded by a backslash), and
- subsequent calls to <code>\today</code> and <code>\formatdate</code> will
+ subsequent calls to <TT>&#092;today</TT> and <TT>&#092;formatdate</TT> will
use your new format.
<P>
@@ -403,8 +408,8 @@ For example, suppose you want to define a new date format called,
<PRE>
\newdateformat{mydate}{\THEDAY-\THEMONTH-\THEYEAR}
</PRE>
- <code>\newdateformat</code> will then define the declaration
-<code>\mydate</code> which can be used to
+<TT>&#092;newdateformat</TT> will then define the declaration
+<TT>&#092;mydate</TT> which can be used to
switch to your new format. In the following example,
two new date formats are defined, and they are then
selected to produce two different formats for the current date:
@@ -424,8 +429,8 @@ Dash: 08-03-2002.
US: March 8<SUP>th</SUP>, 2002.
<P>
-Note that <code>\THEDAY</code> etc and <TT>DAY</TT> etc have no real
-meaning outside <code>\newdateformat</code> (this is why they
+Note that <TT>&#092;THEDAY</TT> etc and <TT>DAY</TT> etc have no real
+meaning outside <TT>&#092;newdateformat</TT> (this is why they
are in uppercase). Incidentally, the <TT>dashdate</TT> format
is not really necessary, as you can achieve this format
using:
@@ -435,9 +440,9 @@ using:
</PRE>
<P>
-Another note: in the above code, <code>\ordinal</code> was
+Another note: in the above code, <TT>&#092;ordinal</TT> was
used to illustrate the use of the <TT>DAY</TT> counter. It
-is better to use <code>\ordinaldate</code> instead:
+is better to use <TT>&#092;ordinaldate</TT> instead:
<PRE>
\newdateformat{usvardate}{%
\monthname[\THEMONTH] \ordinaldate{\THEDAY}, \THEYEAR}
@@ -451,31 +456,31 @@ Saving Dates</A>
<P>
It is possible to save a date for later use using the command:
-<A NAME="tex2html11"
- HREF="#foot272"><SUP>7</SUP></A>
+<A NAME="tex2html8"
+ HREF="#foot244"><SUP>6</SUP></A>
<P>
-<code>\newdate{</code><I>name</I><code>}{</code><I>day</I><code>}{</code><I>month</I><code>}{</code><I>year</I><code>}</code>
+<TT>&#092;newdate{</TT><EM>name</EM><TT>}{</TT><EM>day</EM><TT>}{</TT><EM>month</EM><TT>}{</TT><EM>year</EM><TT>}</TT>
<P>
This date can later be displayed using the same format as that
-used by <code>\formatdate</code> using the command:
+used by <TT>&#092;formatdate</TT> using the command:
<P>
-<code>\displaydate{</code><I>name</I><code>}</code>
+<TT>&#092;displaydate{</TT><EM>name</EM><TT>}</TT>
<P>
Individual elements of the date can be extracted using the
commands:
<P>
-<code>\getdateday{</code><I>name</I><code>}</code>
+<TT>&#092;getdateday{</TT><EM>name</EM><TT>}</TT>
<P>
-<code>\getdatemonth{</code><I>name</I><code>}</code>
+<TT>&#092;getdatemonth{</TT><EM>name</EM><TT>}</TT>
<P>
-<code>\getdateyear{</code><I>name</I><code>}</code>
+<TT>&#092;getdateyear{</TT><EM>name</EM><TT>}</TT>
<P>
@@ -492,48 +497,47 @@ package:
<TR><TH ALIGN="LEFT"><B>Command Name </B></TH>
<TH ALIGN="LEFT"><B>Default Value</B></TH>
</TR>
-<TR><TD ALIGN="LEFT"><code>\dateseparator</code></TD>
+<TR><TD ALIGN="LEFT"><TT>&#092;dateseparator</TT></TD>
<TD ALIGN="LEFT"><code>/</code></TD>
</TR>
-<TR><TD ALIGN="LEFT"><code>\timeseparator</code></TD>
+<TR><TD ALIGN="LEFT"><TT>&#092;timeseparator</TT></TD>
<TD ALIGN="LEFT"><code>:</code></TD>
</TR>
-<TR><TD ALIGN="LEFT"><code>\amname</code></TD>
+<TR><TD ALIGN="LEFT"><TT>&#092;amname</TT></TD>
<TD ALIGN="LEFT"><TT>am</TT></TD>
</TR>
-<TR><TD ALIGN="LEFT"><code>\pmname</code></TD>
+<TR><TD ALIGN="LEFT"><TT>&#092;pmname</TT></TD>
<TD ALIGN="LEFT"><TT>pm</TT></TD>
</TR>
-<TR><TD ALIGN="LEFT"><code>\amorpmname</code></TD>
-<TD ALIGN="LEFT"><code>\amname</code> if morning, otherwise
-<code>\pmname</code></TD>
+<TR><TD ALIGN="LEFT"><TT>&#092;amorpmname</TT></TD>
+<TD ALIGN="LEFT"><TT>&#092;amname</TT> if morning, otherwise <TT>&#092;pmname</TT></TD>
</TR>
-<TR><TD ALIGN="LEFT"><code>\amstring</code></TD>
+<TR><TD ALIGN="LEFT"><TT>&#092;amstring</TT></TD>
<TD ALIGN="LEFT"><TT>in the morning</TT></TD>
</TR>
-<TR><TD ALIGN="LEFT"><code>\pmstring</code></TD>
+<TR><TD ALIGN="LEFT"><TT>&#092;pmstring</TT></TD>
<TD ALIGN="LEFT"><TT>in the afternoon</TT></TD>
</TR>
-<TR><TD ALIGN="LEFT"><code>\amorpmstring</code></TD>
-<TD ALIGN="LEFT"><code>\amstring</code> if morning, otherwise
-<code>\pmstring</code></TD>
+<TR><TD ALIGN="LEFT"><TT>&#092;amorpmstring</TT></TD>
+<TD ALIGN="LEFT"><TT>&#092;amstring</TT> if morning, otherwise
+<TT>&#092;pmstring</TT></TD>
</TR>
-<TR><TD ALIGN="LEFT"><code>\halfpast</code></TD>
+<TR><TD ALIGN="LEFT"><TT>&#092;halfpast</TT></TD>
<TD ALIGN="LEFT"><TT>Half past</TT></TD>
</TR>
-<TR><TD ALIGN="LEFT"><code>\quarterpast</code></TD>
+<TR><TD ALIGN="LEFT"><TT>&#092;quarterpast</TT></TD>
<TD ALIGN="LEFT"><TT>Quarter past</TT></TD>
</TR>
-<TR><TD ALIGN="LEFT"><code>\quarterto</code></TD>
+<TR><TD ALIGN="LEFT"><TT>&#092;quarterto</TT></TD>
<TD ALIGN="LEFT"><TT>Quarter to</TT></TD>
</TR>
-<TR><TD ALIGN="LEFT"><code>\noon</code></TD>
+<TR><TD ALIGN="LEFT"><TT>&#092;noon</TT></TD>
<TD ALIGN="LEFT"><TT>Noon</TT></TD>
</TR>
-<TR><TD ALIGN="LEFT"><code>\midnight</code></TD>
+<TR><TD ALIGN="LEFT"><TT>&#092;midnight</TT></TD>
<TD ALIGN="LEFT"><TT>Midnight</TT></TD>
</TR>
-<TR><TD ALIGN="LEFT"><code>\oclockstring</code></TD>
+<TR><TD ALIGN="LEFT"><TT>&#092;oclockstring</TT></TD>
<TD ALIGN="LEFT"><TT>O'Clock</TT></TD>
</TR>
</TABLE>
@@ -549,40 +553,40 @@ The following options may be passed to this package:
<BR>
<BR> <TABLE CELLPADDING=3>
<TR><TD ALIGN="LEFT"><TT></TD><TD ALIGN="LEFT">long </TT></TD>
-<TD ALIGN="LEFT">make <code>\today</code> produce long date</TD>
+<TD ALIGN="LEFT">make <TT>&#092;today</TT> produce long date</TD>
</TR>
<TR><TD ALIGN="LEFT"><TT></TD><TD ALIGN="LEFT">short </TT></TD>
-<TD ALIGN="LEFT">make <code>\today</code> produce short date</TD>
+<TD ALIGN="LEFT">make <TT>&#092;today</TT> produce short date</TD>
</TR>
<TR><TD ALIGN="LEFT"><TT></TD><TD ALIGN="LEFT">ddmmyyyy </TT></TD>
-<TD ALIGN="LEFT">make <code>\today</code> produce DD/MM/YYYY date</TD>
+<TD ALIGN="LEFT">make <TT>&#092;today</TT> produce DD/MM/YYYY date</TD>
</TR>
<TR><TD ALIGN="LEFT"><TT></TD><TD ALIGN="LEFT">dmyyyy </TT></TD>
-<TD ALIGN="LEFT">make <code>\today</code> produce D/M/YYYY date</TD>
+<TD ALIGN="LEFT">make <TT>&#092;today</TT> produce D/M/YYYY date</TD>
</TR>
<TR><TD ALIGN="LEFT"><TT></TD><TD ALIGN="LEFT">ddmmyy </TT></TD>
-<TD ALIGN="LEFT">make <code>\today</code> produce DD/MM/YY date</TD>
+<TD ALIGN="LEFT">make <TT>&#092;today</TT> produce DD/MM/YY date</TD>
</TR>
<TR><TD ALIGN="LEFT"><TT></TD><TD ALIGN="LEFT">dmyy </TT></TD>
-<TD ALIGN="LEFT">make <code>\today</code> produce D/M/YY date</TD>
+<TD ALIGN="LEFT">make <TT>&#092;today</TT> produce D/M/YY date</TD>
</TR>
<TR><TD ALIGN="LEFT"><TT></TD><TD ALIGN="LEFT">text </TT></TD>
-<TD ALIGN="LEFT">make <code>\today</code> produce text date</TD>
+<TD ALIGN="LEFT">make <TT>&#092;today</TT> produce text date</TD>
</TR>
<TR><TD ALIGN="LEFT"><TT></TD><TD ALIGN="LEFT">us </TT></TD>
-<TD ALIGN="LEFT">make <code>\today</code> produce US style date</TD>
+<TD ALIGN="LEFT">make <TT>&#092;today</TT> produce US style date</TD>
</TR>
<TR><TD ALIGN="LEFT"><TT></TD><TD ALIGN="LEFT">mmddyyyy </TT></TD>
-<TD ALIGN="LEFT">make <code>\today</code> produce MM/DD/YYYY date</TD>
+<TD ALIGN="LEFT">make <TT>&#092;today</TT> produce MM/DD/YYYY date</TD>
</TR>
<TR><TD ALIGN="LEFT"><TT></TD><TD ALIGN="LEFT">mdyyyy </TT></TD>
-<TD ALIGN="LEFT">make <code>\today</code> produce M/D/YYYY date</TD>
+<TD ALIGN="LEFT">make <TT>&#092;today</TT> produce M/D/YYYY date</TD>
</TR>
<TR><TD ALIGN="LEFT"><TT></TD><TD ALIGN="LEFT">mmddyy </TT></TD>
-<TD ALIGN="LEFT">make <code>\today</code> produce MM/DD/YY date</TD>
+<TD ALIGN="LEFT">make <TT>&#092;today</TT> produce MM/DD/YY date</TD>
</TR>
<TR><TD ALIGN="LEFT"><TT></TD><TD ALIGN="LEFT">mdyy </TT></TD>
-<TD ALIGN="LEFT">make <code>\today</code> produce M/D/YY date</TD>
+<TD ALIGN="LEFT">make <TT>&#092;today</TT> produce M/D/YY date</TD>
</TR>
<TR><TD ALIGN="LEFT"><TT></TD><TD ALIGN="LEFT">raise </TT></TD>
<TD ALIGN="LEFT">make ordinal st,nd,rd,th appear as superscript</TD>
@@ -592,29 +596,29 @@ The following options may be passed to this package:
text</TD>
</TR>
<TR><TD ALIGN="LEFT"><TT></TD><TD ALIGN="LEFT">dayofweek </TT></TD>
-<TD ALIGN="LEFT">make the day of week appear for <code>\longdate</code>,
-<code>\shortdate</code></TD>
+<TD ALIGN="LEFT">make the day of week appear for <TT>&#092;longdate</TT>,
+<TT>&#092;shortdate</TT></TD>
</TR>
<TR><TD ALIGN="LEFT"><TT></TD><TD ALIGN="LEFT"></TT></TD>
-<TD ALIGN="LEFT">or <code>\textdate</code></TD>
+<TD ALIGN="LEFT">or <TT>&#092;textdate</TT></TD>
</TR>
<TR><TD ALIGN="LEFT"><TT></TD><TD ALIGN="LEFT">nodayofweek </TT></TD>
<TD ALIGN="LEFT">don't display the day of week.</TD>
</TR>
<TR><TD ALIGN="LEFT"><TT></TD><TD ALIGN="LEFT">24hr </TT></TD>
-<TD ALIGN="LEFT">make <code>\currenttime</code> produce <TT>xxivtime</TT>
+<TD ALIGN="LEFT">make <TT>&#092;currenttime</TT> produce <TT>xxivtime</TT>
format</TD>
</TR>
<TR><TD ALIGN="LEFT"><TT></TD><TD ALIGN="LEFT">12hr </TT></TD>
-<TD ALIGN="LEFT">make <code>\currenttime</code> produce <TT>ampmtime</TT>
+<TD ALIGN="LEFT">make <TT>&#092;currenttime</TT> produce <TT>ampmtime</TT>
format</TD>
</TR>
<TR><TD ALIGN="LEFT"><TT></TD><TD ALIGN="LEFT">oclock </TT></TD>
-<TD ALIGN="LEFT">make <code>\currenttime</code> produce <TT>oclock</TT>
+<TD ALIGN="LEFT">make <TT>&#092;currenttime</TT> produce <TT>oclock</TT>
format</TD>
</TR>
<TR><TD ALIGN="LEFT"><TT></TD><TD ALIGN="LEFT">nodate </TT></TD>
-<TD ALIGN="LEFT">Don't redefine <code>\today</code> or define the month or
+<TD ALIGN="LEFT">Don't redefine <TT>&#092;today</TT> or define the month or
day of week commands</TD>
</TR>
<TR><TD ALIGN="LEFT"><TT></TD><TD ALIGN="LEFT"></TT></TD>
@@ -634,37 +638,54 @@ Multilingual Support</A>
</H1>
<P>
-If the <TT>babel</TT> package is called prior to
-<TT>datetime</TT>, <code>\date</code><I>lang</I>
-will be the default date format,
-where <I>lang</I> is the current language.
-
-<P>
-The commands <code>\monthname</code> and <code>\shortmonthname</code>,
+If you want to use the <TT>babel</TT> package, you must load
+it <I>before</I> you load the <TT>datetime</TT> package. This
+is because the <TT>babel</TT> <TT>&#092;date</TT><I>lang</I> commands
+redefine <TT>&#092;today</TT>, whereas the <TT>datetime</TT> package
+redefines <TT>&#092;today</TT> to use <TT>&#092;formatdate</TT>, and the
+date formatting commands (such as <TT>&#092;longdate</TT>) redefine
+<TT>&#092;formatdate</TT> rather than <TT>&#092;today</TT>. This ensures
+consistent formatting of the dates whether you use <TT>&#092;today</TT> or
+<TT>&#092;formatdate</TT>. Therefore, the <TT>datetime</TT> package
+has to redefine all the <TT>&#092;date</TT><I>lang</I> commands accordingly.
+Thus the multilingual date support is mostly limited to that provided
+by <TT>babel</TT>. Additional support, such as the day of
+week names and abbreviations, are only supplied for those
+languages that I know, or that other people have been able to supply
+for me.
+
+<P>
+The commands <TT>&#092;monthname</TT> and <TT>&#092;shortmonthname</TT>,
will produce the month name in the current language.
If you want the month name in a specific language, you
-can use the command <code>\monthname</code><I>lang</I>.
+can use the command <TT>&#092;monthname</TT><I>lang</I>.
For example, <code>\monthnamefrench[6]</code> will produce the output:
-juin.
-
-<P>
-There is currently only limited multilingual support for
-<code>\dayofweekname</code> and <code>\shortdayofweekname</code> (just
-English, French, Portuguese, Spanish and German<A NAME="tex2html12"
- HREF="#foot324"><SUP>8</SUP></A>). You can add support for
-other languages by defining the commands
-<code>\dayofweeknameid</code><I>lang</I> and
-<code>\shortdayofweeknameid</code><I>lang</I>. Note that these
+juin. Note that <TT>&#092;textdate</TT> is formatted for English dates,
+and won't look right if used with another language setting. If you
+want a textual date, the <TT>fmtcount</TT> package (which is
+loaded by <TT>datetime</TT>) defines some commands which display
+a number or ordinal as a word, but it only has very limited
+multilingual support. See the <TT>fmtcount</TT> documentation
+for further details.
+
+<P>
+There is currently only <I>limited</I> multilingual support for
+<TT>&#092;dayofweekname</TT> and <TT>&#092;shortdayofweekname</TT> (just
+English, French, Portuguese, Spanish and German<A NAME="tex2html9"
+ HREF="#foot358"><SUP>7</SUP></A>). You can add support
+for other languages by defining the commands
+<TT>&#092;dayofweeknameid</TT><I>lang</I> and
+<TT>&#092;shortdayofweeknameid</TT><I>lang</I>. Note that these
commands only take <I>one</I> argument which should be
a number from 1 to 7 indicating the day of the week.
<P>
You can use the following as templates. Replace
<TT>english</TT> with the name of your language (as given
-by <code>\languagename</code>) and replace <TT>Sunday</TT>
+by <TT>&#092;languagename</TT>) and replace <TT>Sunday</TT>
etc as appropriate:
<PRE>
-\providecommand{\dayofweeknameidenglish}[1]{%
+\providecommand*{\dayofweeknameidenglish}[1]{%
\ifcase#1\relax
\or Sunday%
\or Monday%
@@ -675,7 +696,7 @@ etc as appropriate:
\or Saturday%
\fi}
-\providecommand{\shortdayofweeknameidenglish}[1]{%
+\providecommand*{\shortdayofweeknameidenglish}[1]{%
\ifcase#1\relax
\or Sun%
\or Mon%
@@ -687,7 +708,7 @@ etc as appropriate:
\fi}
</PRE>
If you want them added to future versions of
-<TT>datetime</TT>, please e-mail me the code.
+<TT>datetime</TT>, please email me the code.
<P>
@@ -696,13 +717,12 @@ Configuration File</A>
</H1>
<P>
-As from Version 2.4, the <TT>datetime</TT> package will read in
-settings from the configuration
- file <TT>datetime.cfg</TT>, if it exists, which will override
-the default package options.
- For example, suppose you prefer a short date without the day of
-week by default, you will need to create
- a file called <TT>datetime.cfg</TT> that contains the line:
+As from Version 2.4, the <TT>datetime</TT> package will read in settings
+from the configuration file <TT>datetime.cfg</TT>, if it exists,
+which will override the default package options. For example,
+suppose you prefer a short date without the day of week by default,
+you will need to create a file called <TT>datetime.cfg</TT> that
+contains the line:
<PRE>
\shortdate\showdowfalse
</PRE>
@@ -754,7 +774,7 @@ This, I agree, is an unpleasant cludge.
<P>
</LI>
-<LI>The commands <code>\monthname</code><I>language</I> are not
+<LI>The commands <TT>&#092;monthname</TT><I>language</I> are not
implemented.
<P>
@@ -777,83 +797,58 @@ Troubleshooting</A>
<P>
There is a <TT>datetime</TT> FAQ available at:
-<TT><A NAME="tex2html13"
+<TT><A NAME="tex2html10"
HREF="http://theoval.cmp.uea.ac.uk/~nlct/latex/packages/faq/">http://theoval.cmp.uea.ac.uk/~nlct/latex/packages/faq/</A></TT>
<P>
-
-<H1><A NAME="SECTION000140000000000000000">
-Contact Details</A>
-</H1>
- Dr Nicola Talbot
-<BR>
-School of Computing Sciences
-<BR>
-University of East Anglia
-<BR>
-Norwich. NR4 7TJ.
-<BR>
-United Kingdom.
-<BR> <TT><A NAME="tex2html14"
- HREF="http://theoval.cmp.uea.ac.uk/~nlct/">http://theoval.cmp.uea.ac.uk/~nlct/</A></TT>
<BR><HR><H4>Footnotes</H4>
<DL>
-<DT><A NAME="foot382">... format</A><A
- HREF="manual.html#tex2html4"><SUP>1</SUP></A></DT>
-<DD>Note that the commands <TT>&#92;xxivtime</TT>,
-<TT>&#92;ampmtime</TT> and
- <TT>&#92;oclock</TT> are still available,
-<TT>&#92;settimeformat</TT>
- redefines <TT>&#92;currenttime</TT> to the command
-given by placing a backslash in front of <I>style</I>. So
- <TT>&#92;settimeformat{xxivtime}</TT> sets
-<TT>&#92;currenttime</TT>
- to <TT>&#92;xxivtime</TT> and so on.
+<DT><A NAME="foot411">...
+selected</A><A
+ HREF="manual.html#tex2html2"><SUP>1</SUP></A></DT>
+<DD>in fact, you may get an error from the
+<TT>fmtcount</TT> package if you are using a language that it
+doesn't support.
</DD>
-<DT><A NAME="foot134">... afternoon.</A><A
- HREF="manual.html#tex2html5"><SUP>2</SUP></A></DT>
-<DD>Version
-2.43 fixed bug which caused an infinite loop on the hour.
+<DT><A NAME="foot416">...
+format</A><A
+ HREF="manual.html#tex2html3"><SUP>2</SUP></A></DT>
+<DD>Note that the commands <TT>&#092;xxivtime</TT>, <TT>&#092;ampmtime</TT>
+and <TT>&#092;oclock</TT> are still available, <TT>&#092;settimeformat</TT> redefines
+<TT>&#092;currenttime</TT> to the command given by placing a backslash in front
+of <I>style</I>. So <TT>&#092;settimeformat{xxivtime}</TT> sets
+<TT>&#092;currenttime</TT> to <TT>&#092;xxivtime</TT> and so on.
</DD>
-<DT><A NAME="foot175">... <code>\pdfdate</code></A><A
- HREF="manual.html#tex2html6"><SUP>3</SUP></A></DT>
+<DT><A NAME="foot148">... <code>\pdfdate</code></A><A
+ HREF="manual.html#tex2html4"><SUP>3</SUP></A></DT>
<DD>thanks to Ulrich Dirr for
asking about this
</DD>
-<DT><A NAME="foot384">...year<code>}</code></A><A
- HREF="manual.html#tex2html8"><SUP>4</SUP></A></DT>
+<DT><A NAME="foot417">...year</A><A
+ HREF="manual.html#tex2html6"><SUP>4</SUP></A></DT>
<DD>Note the
- name change since version 1.1. The command name was changed
-from <TT>&#92;thedate</TT>
- to <TT>&#92;formatdate</TT>
- to avoid a name clash when using the <TT>seminar</TT> class
-file.
-
-</DD>
-<DT><A NAME="foot385">...
-<code>\today</code></A><A
- HREF="manual.html#tex2html9"><SUP>5</SUP></A></DT>
-<DD>To be more precise, &#92;
-<TT>today</TT> is defined to be &#92;
-<TT>formatdate{&#92;day}{&#92;month}{&#92;year}</TT>
- where &#92;<TT>longdate</TT> etc change the definition
-of &#92;<TT>formatdate</TT>
+name change since version 1.1. The command name was changed from
+<TT>&#092;thedate</TT> to <TT>&#092;formatdate</TT> to avoid a name clash when using the
+<TT>seminar</TT> class file.
</DD>
-<DT><A NAME="foot239">...num<code>}</code></A><A
- HREF="manual.html#tex2html10"><SUP>6</SUP></A></DT>
-<DD>New to version 2.2
+<DT><A NAME="foot421">...today</A><A
+ HREF="manual.html#tex2html7"><SUP>5</SUP></A></DT>
+<DD>To be more precise,
+<TT>&#092;today</TT> is defined to be
+<TT>&#092;formatdate{<TT>&#092;day</TT>}{<TT>&#092;month</TT>}{<TT>&#092;year</TT>}</TT> where
+<TT>&#092;longdate</TT> etc change the definition of <TT>&#092;formatdate</TT>
</DD>
-<DT><A NAME="foot272">... command:</A><A
- HREF="manual.html#tex2html11"><SUP>7</SUP></A></DT>
+<DT><A NAME="foot244">... command:</A><A
+ HREF="manual.html#tex2html8"><SUP>6</SUP></A></DT>
<DD>Thanks to Denis Bitouz&#233; for asking about this
</DD>
-<DT><A NAME="foot324">... German</A><A
- HREF="manual.html#tex2html12"><SUP>8</SUP></A></DT>
+<DT><A NAME="foot358">... German</A><A
+ HREF="manual.html#tex2html9"><SUP>7</SUP></A></DT>
<DD>thanks
to Uwe Bieling for supplying the German names
@@ -864,7 +859,7 @@ to Uwe Bieling for supplying the German names
<A href=http://theoval.cmp.uea.ac.uk/~nlct/>Nicola L. C. Talbot</A>.
<A HREF=http://www.cmp.uea.ac.uk/>School of Computing Sciences</A>.
<A HREF=http://www.uea.ac.uk/>University of East Anglia.</A>
-Last Modified: 2007-04-21
+Last Modified: 2007-08-20
</ADDRESS>
</BODY>
</HTML>
diff --git a/Master/texmf-dist/doc/latex/datetime/datetime.pdf b/Master/texmf-dist/doc/latex/datetime/datetime.pdf
index 6a0adda2c59..f0c60ad6b65 100644
--- a/Master/texmf-dist/doc/latex/datetime/datetime.pdf
+++ b/Master/texmf-dist/doc/latex/datetime/datetime.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/datetime/datetime.perl b/Master/texmf-dist/doc/latex/datetime/datetime.perl
index 012f42b6c73..fe56b9f6597 100644
--- a/Master/texmf-dist/doc/latex/datetime/datetime.perl
+++ b/Master/texmf-dist/doc/latex/datetime/datetime.perl
@@ -2,7 +2,21 @@
# Author : Nicola Talbot
# Date : 21 Apr 2007
# Version : 1.03
-# Description : LaTeX2HTML implementation of datetime package.
+#
+# This is a LaTeX2HTML style implementing the datetime package, and
+# is distributed as part of that package.
+# Copyright 2007 Nicola L.C. Talbot
+# This work may be distributed and/or modified under the
+# conditions of the LaTeX Project Public License, either version 1.3
+# of this license of (at your option) any later version.
+# The latest version of this license is in
+# http://www.latex-project.org/lppl.txt
+# and version 1.3 or later is part of all distributions of LaTeX
+# version 2005/12/01 or later.
+#
+# This work has the LPPL maintenance status `maintained'.
+#
+# The Current Maintainer of this work is Nicola Talbot.
# set up default values for internal counters.
@@ -198,7 +212,7 @@ sub do_datetime_breton{
$tmp .= 'local($_) = @_;';
$tmp .= 'local($num) = &missing_braces unless ($_[0]=~(s/$next_pair_pr_rx//o)&&($num=$2));';
$tmp .= 'local($before) = $num;';
-
+
$tmp .= 'if ($num == 1)';
$tmp .= '{ $before .= \'a\~n\'; }';
@@ -392,7 +406,7 @@ sub do_datetime_french{
$tmp .= 'local($_) = @_;';
$tmp .= 'local($num) = &missing_braces unless ($_[0]=~(s/$next_pair_pr_rx//o)&&($num=$2));';
$tmp .= 'local($before) = $num;';
-
+
$tmp .= 'if ($num == 1)';
$tmp .= '{ $before .= \'\ier\'; }';
@@ -907,7 +921,7 @@ sub do_datetime_welsh{
$tmp .= 'local($_) = @_;';
$tmp .= 'local($num) = &missing_braces unless ($_[0]=~(s/$next_pair_pr_rx//o)&&($num=$2));';
$tmp .= 'local($before) = $num;';
-
+
$tmp .= 'if ($num == 1)';
$tmp .= '{ $before .= \'a\~n\'; }';
@@ -1042,12 +1056,12 @@ sub get_day_of_week{
sub get_day_of_weekname_english{
local($dow) = @_;
- local(@DayOfWeek) = ('Sunday',
- 'Monday',
- 'Tuesday',
- 'Wednesday',
- 'Thursday',
- 'Friday',
+ local(@DayOfWeek) = ('Sunday',
+ 'Monday',
+ 'Tuesday',
+ 'Wednesday',
+ 'Thursday',
+ 'Friday',
'Saturday');
if ($dow <= 0 || $dow > 7)
@@ -1064,11 +1078,11 @@ sub get_day_of_weekname_french{
local($dow) = @_;
local(@DayOfWeek) = ('dimanche',
- 'lundi',
- 'mardi',
- 'mercredi',
- 'jeudi',
- 'vendredi',
+ 'lundi',
+ 'mardi',
+ 'mercredi',
+ 'jeudi',
+ 'vendredi',
'samedi');
if ($dow <= 0 || $dow > 7)
@@ -1085,11 +1099,11 @@ sub get_day_of_weekname_spanish{
local($dow) = @_;
local(@DayOfWeek) = ('domingo',
- 'lunes',
- 'martes',
- 'mi\\\'ercoles',
- 'jueves',
- 'viernes',
+ 'lunes',
+ 'martes',
+ 'mi\\\'ercoles',
+ 'jueves',
+ 'viernes',
's\\\'abado');
if ($dow <= 0 || $dow > 7)
@@ -1106,11 +1120,11 @@ sub get_day_of_weekname_portuges{
local($dow) = @_;
local(@DayOfWeek) = ('domingo',
- 'segunda-feira',
- 'ter\c{c}a-feira',
- 'quarta-feira',
+ 'segunda-feira',
+ 'ter\c{c}a-feira',
+ 'quarta-feira',
'quinta-feira',
- 'sexta-feira',
+ 'sexta-feira',
'sabado');
if ($dow <= 0 || $dow > 7)
@@ -1127,11 +1141,11 @@ sub get_day_of_weekname_german{
local($dow) = @_;
local(@DayOfWeek) = ('Sonntag',
- 'Montag',
- 'Dienstag',
- 'Mittwoch',
- 'Donnerstag',
- 'Freitag',
+ 'Montag',
+ 'Dienstag',
+ 'Mittwoch',
+ 'Donnerstag',
+ 'Freitag',
'Samstag');
if ($dow <= 0 || $dow > 7)
@@ -1148,11 +1162,11 @@ sub get_day_of_weekname_ngerman{
local($dow) = @_;
local(@DayOfWeek) = ('Sonntag',
- 'Montag',
- 'Dienstag',
- 'Mittwoch',
- 'Donnerstag',
- 'Freitag',
+ 'Montag',
+ 'Dienstag',
+ 'Mittwoch',
+ 'Donnerstag',
+ 'Freitag',
'Samstag');
if ($dow <= 0 || $dow > 7)
@@ -1184,12 +1198,12 @@ sub get_day_of_weekname{
sub get_short_day_of_weekname_english{
local($dow) = @_;
- local(@DayOfWeek) = ('Sun',
- 'Mon',
- 'Tue',
- 'Wed',
- 'Thu',
- 'Fri',
+ local(@DayOfWeek) = ('Sun',
+ 'Mon',
+ 'Tue',
+ 'Wed',
+ 'Thu',
+ 'Fri',
'Sat');
if ($dow <= 0 || $dow > 7)
@@ -1205,12 +1219,12 @@ sub get_short_day_of_weekname_english{
sub get_short_day_of_weekname_german{
local($dow) = @_;
- local(@DayOfWeek) = ('So',
- 'Mo',
- 'Di',
- 'Mi',
- 'Do',
- 'Fr',
+ local(@DayOfWeek) = ('So',
+ 'Mo',
+ 'Di',
+ 'Mi',
+ 'Do',
+ 'Fr',
'Sa');
if ($dow <= 0 || $dow > 7)
@@ -1226,12 +1240,12 @@ sub get_short_day_of_weekname_german{
sub get_short_day_of_weekname_ngerman{
local($dow) = @_;
- local(@DayOfWeek) = ('So',
- 'Mo',
- 'Di',
- 'Mi',
- 'Do',
- 'Fr',
+ local(@DayOfWeek) = ('So',
+ 'Mo',
+ 'Di',
+ 'Mi',
+ 'Do',
+ 'Fr',
'Sa');
if ($dow <= 0 || $dow > 7)
@@ -1561,7 +1575,7 @@ sub do_cmd_newdateformat{
sub do_cmd_pdfdate{
local($_) = @_;
- local($timestring) = sprintf "%d%02d%02d%02d%02d%02d",
+ local($timestring) = sprintf "%d%02d%02d%02d%02d%02d",
$global{YEAR}, $global{MONTH}, $global{DAY}, $global{HOUR}, $global{MINUTE}, $global{SECONDS};
join('', $timestring, $_[0]);
@@ -1581,6 +1595,7 @@ sub do_cmd_newdate{
$year = &missing_braces unless ($_[0]=~(s/$next_pair_pr_rx//o)&&($year =$2));
+
$userdates{$datename}{day} = $day;
$userdates{$datename}{month} = $mon;
$userdates{$datename}{year} = $year;
diff --git a/Master/texmf-dist/doc/latex/datetime/dt-lang.tex b/Master/texmf-dist/doc/latex/datetime/dt-lang.tex
new file mode 100644
index 00000000000..b495ed47cb8
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/datetime/dt-lang.tex
@@ -0,0 +1,20 @@
+\documentclass{article}
+
+\usepackage[french,spanish,english]{babel}
+\usepackage{datetime}
+
+\begin{document}
+English: \today
+
+\selectlanguage{french}
+French: \today
+
+\selectlanguage{spanish}
+Spanish: \today
+
+\begin{otherlanguage}{french}
+French: \today
+\end{otherlanguage}
+
+\today
+\end{document}
diff --git a/Master/texmf-dist/doc/latex/datetime/dt-sampl.tex b/Master/texmf-dist/doc/latex/datetime/dt-sampl.tex
index f1a16d56259..ed39ed2f7ce 100644
--- a/Master/texmf-dist/doc/latex/datetime/dt-sampl.tex
+++ b/Master/texmf-dist/doc/latex/datetime/dt-sampl.tex
@@ -1,31 +1,3 @@
-%%
-%% This is file `dt-sampl.tex',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% datetime.dtx (with options: `dt-sampl.tex,package')
-%% Copyright (C) 2007 Nicola Talbot, all rights reserved.
-%% If you modify this file, you must change its name first.
-%% You are NOT ALLOWED to distribute this file alone. You are NOT
-%% ALLOWED to take money for the distribution or use of either this
-%% file or a changed version, except for a nominal charge for copying
-%% etc.
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
\documentclass[a4paper]{article}
\usepackage{ifpdf}
@@ -86,17 +58,17 @@ oclock & \settimeformat{oclock}\currenttime
\begin{tabular}{ll}
\verb|\longdate| & \longdate\formatdate{1}{3}{2000}\\
-\verb|\shortdate| & \shortdate\formatdate{8}{3}{2000}\\
-\verb|\ddmmyyyydate| & \ddmmyyyydate\formatdate{8}{3}{2000}\\
-\verb|\dmyyyydate| & \dmyyyydate\formatdate{8}{3}{2000}\\
-\verb|\ddmmyydate| & \ddmmyydate\formatdate{8}{3}{2000}\\
-\verb|\dmyydate| & \dmyydate\formatdate{8}{3}{2000}\\
-\verb|\textdate| & \textdate\formatdate{8}{3}{2000}\\
-\verb|\usdate| & \usdate\formatdate{8}{3}{2000}\\
-\verb|\mmddyyyydate| & \mmddyyyydate\formatdate{8}{3}{2000}\\
-\verb|\mdyyyydate| & \mdyyyydate\formatdate{8}{3}{2000}\\
-\verb|\mmddyydate| & \mmddyydate\formatdate{8}{3}{2000}\\
-\verb|\mdyydate| & \mdyydate\formatdate{8}{3}{2000}
+\verb|\shortdate| & \shortdate\formatdate{1}{3}{2000}\\
+\verb|\ddmmyyyydate| & \ddmmyyyydate\formatdate{1}{3}{2000}\\
+\verb|\dmyyyydate| & \dmyyyydate\formatdate{1}{3}{2000}\\
+\verb|\ddmmyydate| & \ddmmyydate\formatdate{1}{3}{2000}\\
+\verb|\dmyydate| & \dmyydate\formatdate{1}{3}{2000}\\
+\verb|\textdate| & \textdate\formatdate{1}{3}{2000}\\
+\verb|\usdate| & \usdate\formatdate{1}{3}{2000}\\
+\verb|\mmddyyyydate| & \mmddyyyydate\formatdate{1}{3}{2000}\\
+\verb|\mdyyyydate| & \mdyyyydate\formatdate{1}{3}{2000}\\
+\verb|\mmddyydate| & \mmddyydate\formatdate{1}{3}{2000}\\
+\verb|\mdyydate| & \mdyydate\formatdate{1}{3}{2000}
\end{tabular}
\section{Defining New Dates}
@@ -123,6 +95,3 @@ hhmm & \settimeformat{hhmm}\currenttime
\end{tabular}
\end{document}
-\endinput
-%%
-%% End of file `dt-sampl.tex'.