summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/datetime
diff options
context:
space:
mode:
authorReinhard Kotucha <reinhard.kotucha@web.de>2007-04-08 17:56:27 +0000
committerReinhard Kotucha <reinhard.kotucha@web.de>2007-04-08 17:56:27 +0000
commit8c38dc88ed6cf33fd2e9385e102e9935e8b60b00 (patch)
tree374324d88bb7ddd8f6e57b14683315891102f936 /Master/texmf-dist/doc/latex/datetime
parentcaef592b102b13a49c19d22bc87241b0a99d4045 (diff)
update datetime to v2.51
git-svn-id: svn://tug.org/texlive/trunk@4130 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/datetime')
-rw-r--r--Master/texmf-dist/doc/latex/datetime/CHANGES5
-rw-r--r--Master/texmf-dist/doc/latex/datetime/README4
-rw-r--r--Master/texmf-dist/doc/latex/datetime/datetime.pdfbin159408 -> 160912 bytes
-rw-r--r--Master/texmf-dist/doc/latex/datetime/datetime.perl121
-rw-r--r--Master/texmf-dist/doc/latex/datetime/dt-sampl.tex2
-rw-r--r--Master/texmf-dist/doc/latex/datetime/manual.html79
6 files changed, 169 insertions, 42 deletions
diff --git a/Master/texmf-dist/doc/latex/datetime/CHANGES b/Master/texmf-dist/doc/latex/datetime/CHANGES
index caa88d52fb1..9e360fd205b 100644
--- a/Master/texmf-dist/doc/latex/datetime/CHANGES
+++ b/Master/texmf-dist/doc/latex/datetime/CHANGES
@@ -1,5 +1,10 @@
datetime.sty history
+Version 2.51: fixed time between midnight and 1am
+
+Version 2.5: Added (n)german week day names (thanks to Uwe Bieling)
+for supplying this. Fixed minor bugs.
+
Version 2.49: Fixed some of the multilingual problems, tidied up
code documentation
diff --git a/Master/texmf-dist/doc/latex/datetime/README b/Master/texmf-dist/doc/latex/datetime/README
index dbfa3c7bfcd..ca9c30b422e 100644
--- a/Master/texmf-dist/doc/latex/datetime/README
+++ b/Master/texmf-dist/doc/latex/datetime/README
@@ -1,6 +1,6 @@
-LaTeX Package : datetime v 2.49
+LaTeX Package : datetime v 2.51
-Last Modified : 5 December 2006
+Last Modified : 30 January 2007
Author : Nicola Talbot
diff --git a/Master/texmf-dist/doc/latex/datetime/datetime.pdf b/Master/texmf-dist/doc/latex/datetime/datetime.pdf
index cf9fd80eafb..6e0db97efe6 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 3f8ab5bfb80..1b557a51a7b 100644
--- a/Master/texmf-dist/doc/latex/datetime/datetime.perl
+++ b/Master/texmf-dist/doc/latex/datetime/datetime.perl
@@ -1,7 +1,7 @@
# File : datetime.perl
# Author : Nicola Talbot
-# Date : 3 Mar 2005
-# Version : 1.01
+# Date : 17 Jan 2007
+# Version : 1.02
# Description : LaTeX2HTML implementation of datetime package.
# set up default values for internal counters.
@@ -1123,6 +1123,48 @@ sub get_day_of_weekname_portuges{
}
}
+sub get_day_of_weekname_german{
+ local($dow) = @_;
+
+ local(@DayOfWeek) = ('Sonntag',
+ 'Montag',
+ 'Dienstag',
+ 'Mittwoch',
+ 'Donnerstag',
+ 'Freitag',
+ 'Samstag');
+
+ if ($dow <= 0 || $dow > 7)
+ {
+ &write_warnings("Invalid day of week number: $dow");
+ }
+ else
+ {
+ $DayOfWeek[$dow-1];
+ }
+}
+
+sub get_day_of_weekname_ngerman{
+ local($dow) = @_;
+
+ local(@DayOfWeek) = ('Sonntag',
+ 'Montag',
+ 'Dienstag',
+ 'Mittwoch',
+ 'Donnerstag',
+ 'Freitag',
+ 'Samstag');
+
+ if ($dow <= 0 || $dow > 7)
+ {
+ &write_warnings("Invalid day of week number: $dow");
+ }
+ else
+ {
+ $DayOfWeek[$dow-1];
+ }
+}
+
sub get_day_of_weekname{
local($dow)=@_;
local($dowsub);
@@ -1139,10 +1181,83 @@ sub get_day_of_weekname{
}
}
+sub get_short_day_of_weekname_english{
+ local($dow) = @_;
+
+ local(@DayOfWeek) = ('Sun',
+ 'Mon',
+ 'Tue',
+ 'Wed',
+ 'Thu',
+ 'Fri',
+ 'Sat');
+
+ if ($dow <= 0 || $dow > 7)
+ {
+ &write_warnings("Invalid day of week number: $dow");
+ }
+ else
+ {
+ $DayOfWeek[$dow-1];
+ }
+}
+
+sub get_short_day_of_weekname_german{
+ local($dow) = @_;
+
+ local(@DayOfWeek) = ('So',
+ 'Mo',
+ 'Di',
+ 'Mi',
+ 'Do',
+ 'Fr',
+ 'Sa');
+
+ if ($dow <= 0 || $dow > 7)
+ {
+ &write_warnings("Invalid day of week number: $dow");
+ }
+ else
+ {
+ $DayOfWeek[$dow-1];
+ }
+}
+
+sub get_short_day_of_weekname_ngerman{
+ local($dow) = @_;
+
+ local(@DayOfWeek) = ('So',
+ 'Mo',
+ 'Di',
+ 'Mi',
+ 'Do',
+ 'Fr',
+ 'Sa');
+
+ if ($dow <= 0 || $dow > 7)
+ {
+ &write_warnings("Invalid day of week number: $dow");
+ }
+ else
+ {
+ $DayOfWeek[$dow-1];
+ }
+}
+
sub get_short_day_of_weekname{
local($dow)=@_;
+ local($dowsub);
+
+ $dowsub = "get_short_day_of_weekname_$default_language";
- substr(&get_day_of_weekname($dow),0,3);
+ if (defined ($dowsub))
+ {
+ &$dowsub($dow);
+ }
+ else
+ {
+ substr(&get_day_of_weekname($dow),0,3);
+ }
}
sub do_cmd_dayofweeknameid{
diff --git a/Master/texmf-dist/doc/latex/datetime/dt-sampl.tex b/Master/texmf-dist/doc/latex/datetime/dt-sampl.tex
index f8ba3b9e046..f1a16d56259 100644
--- a/Master/texmf-dist/doc/latex/datetime/dt-sampl.tex
+++ b/Master/texmf-dist/doc/latex/datetime/dt-sampl.tex
@@ -5,7 +5,7 @@
%% The original source files were:
%%
%% datetime.dtx (with options: `dt-sampl.tex,package')
-%% Copyright (C) 2006 Nicola Talbot, all rights reserved.
+%% 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
diff --git a/Master/texmf-dist/doc/latex/datetime/manual.html b/Master/texmf-dist/doc/latex/datetime/manual.html
index 09bd4d1717e..402a77dfc15 100644
--- a/Master/texmf-dist/doc/latex/datetime/manual.html
+++ b/Master/texmf-dist/doc/latex/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.49: Formatting Current Date and Time</TITLE>
-<META NAME="description" CONTENT="datetime.sty v2.49: Formatting Current Date and Time">
+<TITLE>datetime.sty v2.51: Formatting Current Date and Time</TITLE>
+<META NAME="description" CONTENT="datetime.sty v2.51: Formatting Current Date and Time">
<META NAME="keywords" CONTENT="manual">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">
@@ -34,10 +34,10 @@ original version by: Nikos Drakos, CBLU, University of Leeds
<P>
- <H1 ALIGN="CENTER">datetime.sty v2.49: Formatting Current Date and
+ <H1 ALIGN="CENTER">datetime.sty v2.51: Formatting Current Date and
Time</H1>
<P ALIGN="CENTER"><STRONG>Nicola L.C. Talbot</STRONG></P>
-<P ALIGN="CENTER"><STRONG>5 Dec 2006</STRONG></P>
+<P ALIGN="CENTER"><STRONG>30 Jan 2007</STRONG></P>
<BR>
<H2><A NAME="SECTION00010000000000000000">
@@ -46,31 +46,31 @@ Contents</A>
<!--Table of Contents-->
<UL>
-<LI><A NAME="tex2html28"
- HREF="manual.html#SECTION00020000000000000000">Introduction</A>
<LI><A NAME="tex2html29"
- HREF="manual.html#SECTION00030000000000000000">Date Declarations</A>
+ HREF="manual.html#SECTION00020000000000000000">Introduction</A>
<LI><A NAME="tex2html30"
- HREF="manual.html#SECTION00040000000000000000">Time Commands</A>
+ HREF="manual.html#SECTION00030000000000000000">Date Declarations</A>
<LI><A NAME="tex2html31"
- HREF="manual.html#SECTION00050000000000000000">Formating Dates</A>
+ HREF="manual.html#SECTION00040000000000000000">Time Commands</A>
<LI><A NAME="tex2html32"
- HREF="manual.html#SECTION00060000000000000000">Defining New Date Formats</A>
+ HREF="manual.html#SECTION00050000000000000000">Formating Dates</A>
<LI><A NAME="tex2html33"
- HREF="manual.html#SECTION00070000000000000000">Saving Dates</A>
+ HREF="manual.html#SECTION00060000000000000000">Defining New Date Formats</A>
<LI><A NAME="tex2html34"
- HREF="manual.html#SECTION00080000000000000000">Predefined Names</A>
+ HREF="manual.html#SECTION00070000000000000000">Saving Dates</A>
<LI><A NAME="tex2html35"
- HREF="manual.html#SECTION00090000000000000000">Package Options</A>
+ HREF="manual.html#SECTION00080000000000000000">Predefined Names</A>
<LI><A NAME="tex2html36"
- HREF="manual.html#SECTION000100000000000000000">Multilingual Support</A>
+ HREF="manual.html#SECTION00090000000000000000">Package Options</A>
<LI><A NAME="tex2html37"
- HREF="manual.html#SECTION000110000000000000000">Configuration File</A>
+ HREF="manual.html#SECTION000100000000000000000">Multilingual Support</A>
<LI><A NAME="tex2html38"
- HREF="manual.html#SECTION000120000000000000000">LaTeX2HTML styles</A>
+ HREF="manual.html#SECTION000110000000000000000">Configuration File</A>
<LI><A NAME="tex2html39"
- HREF="manual.html#SECTION000130000000000000000">Troubleshooting</A>
+ HREF="manual.html#SECTION000120000000000000000">LaTeX2HTML styles</A>
<LI><A NAME="tex2html40"
+ HREF="manual.html#SECTION000130000000000000000">Troubleshooting</A>
+<LI><A NAME="tex2html41"
HREF="manual.html#SECTION000140000000000000000">Contact Details</A>
</UL>
<!--End of Table of Contents-->
@@ -208,7 +208,7 @@ Time Commands</A>
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="#foot378"><SUP>1</SUP></A>. Available
+ HREF="#foot382"><SUP>1</SUP></A>. Available
formats are:
<DL>
<DT><STRONG>xxivtime</STRONG></DT>
@@ -220,7 +220,7 @@ formats are:
<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="#foot131"><SUP>2</SUP></A>
+ HREF="#foot134"><SUP>2</SUP></A>
</DD>
</DL>
@@ -271,7 +271,7 @@ Formating Dates</A>
</H1>
The command <code>\pdfdate</code><A NAME="tex2html6"
- HREF="#foot172"><SUP>3</SUP></A> prints the date in the format required for
+ HREF="#foot175"><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
@@ -350,10 +350,10 @@ will only be added if <I>number</I> is 1, otherwise only
<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="#foot380"><SUP>4</SUP></A> formats
+ HREF="#foot384"><SUP>4</SUP></A> formats
the specified date according to the current format of
<code>\today</code><A NAME="tex2html9"
- HREF="#foot381"><SUP>5</SUP></A>. (Arguments
+ HREF="#foot385"><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>
@@ -365,7 +365,7 @@ September, 2004.
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="#foot236"><SUP>6</SUP></A>.
+ HREF="#foot239"><SUP>6</SUP></A>.
This is of use if you want to define your own date or time
formats.
@@ -452,7 +452,7 @@ Saving Dates</A>
<P>
It is possible to save a date for later use using the command:
<A NAME="tex2html11"
- HREF="#foot269"><SUP>7</SUP></A>
+ HREF="#foot272"><SUP>7</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>
@@ -650,7 +650,8 @@ juin.
<P>
There is currently only limited multilingual support for
<code>\dayofweekname</code> and <code>\shortdayofweekname</code> (just
-English, French, Portuguese and Spanish). You can add support for
+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
@@ -674,7 +675,7 @@ etc as appropriate:
\or Saturday%
\fi}
-\providecommand{\shortdayofweekidnameenglish}[1]{%
+\providecommand{\shortdayofweeknameidenglish}[1]{%
\ifcase#1\relax
\or Sun%
\or Mon%
@@ -776,7 +777,7 @@ Troubleshooting</A>
<P>
There is a <TT>datetime</TT> FAQ available at:
-<TT><A NAME="tex2html12"
+<TT><A NAME="tex2html13"
HREF="http://theoval.cmp.uea.ac.uk/~nlct/latex/packages/faq/">http://theoval.cmp.uea.ac.uk/~nlct/latex/packages/faq/</A></TT>
<P>
@@ -792,11 +793,11 @@ University of East Anglia
Norwich. NR4 7TJ.
<BR>
United Kingdom.
-<BR> <TT><A NAME="tex2html13"
+<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="foot378">... format</A><A
+<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
@@ -809,19 +810,19 @@ given by placing a backslash in front of <I>style</I>. So
to <TT>&#92;xxivtime</TT> and so on.
</DD>
-<DT><A NAME="foot131">... afternoon.</A><A
+<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.
</DD>
-<DT><A NAME="foot172">... <code>\pdfdate</code></A><A
+<DT><A NAME="foot175">... <code>\pdfdate</code></A><A
HREF="manual.html#tex2html6"><SUP>3</SUP></A></DT>
<DD>thanks to Ulrich Dirr for
asking about this
</DD>
-<DT><A NAME="foot380">...year<code>}</code></A><A
+<DT><A NAME="foot384">...year<code>}</code></A><A
HREF="manual.html#tex2html8"><SUP>4</SUP></A></DT>
<DD>Note the
name change since version 1.1. The command name was changed
@@ -831,7 +832,7 @@ from <TT>&#92;thedate</TT>
file.
</DD>
-<DT><A NAME="foot381">...
+<DT><A NAME="foot385">...
<code>\today</code></A><A
HREF="manual.html#tex2html9"><SUP>5</SUP></A></DT>
<DD>To be more precise, &#92;
@@ -841,23 +842,29 @@ file.
of &#92;<TT>formatdate</TT>
</DD>
-<DT><A NAME="foot236">...num<code>}</code></A><A
+<DT><A NAME="foot239">...num<code>}</code></A><A
HREF="manual.html#tex2html10"><SUP>6</SUP></A></DT>
<DD>New to version 2.2
</DD>
-<DT><A NAME="foot269">... command:</A><A
+<DT><A NAME="foot272">... command:</A><A
HREF="manual.html#tex2html11"><SUP>7</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>
+<DD>thanks
+to Uwe Bieling for supplying the German names
+
+</DD>
</DL>
<BR><HR>
<ADDRESS>
<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: 2006-12-06
+Last Modified: 2007-01-30
</ADDRESS>
</BODY>
</HTML>