From 8c38dc88ed6cf33fd2e9385e102e9935e8b60b00 Mon Sep 17 00:00:00 2001 From: Reinhard Kotucha Date: Sun, 8 Apr 2007 17:56:27 +0000 Subject: update datetime to v2.51 git-svn-id: svn://tug.org/texlive/trunk@4130 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/datetime/CHANGES | 5 + Master/texmf-dist/doc/latex/datetime/README | 4 +- Master/texmf-dist/doc/latex/datetime/datetime.pdf | Bin 159408 -> 160912 bytes Master/texmf-dist/doc/latex/datetime/datetime.perl | 121 +++++++++++- Master/texmf-dist/doc/latex/datetime/dt-sampl.tex | 2 +- Master/texmf-dist/doc/latex/datetime/manual.html | 79 ++++---- .../texmf-dist/source/latex/datetime/datetime.dtx | 214 +++++++++++++++++++-- .../texmf-dist/source/latex/datetime/datetime.ins | 4 +- Master/texmf-dist/tex/latex/datetime/datetime.sty | 26 +-- .../texmf-dist/tex/latex/datetime/dt-austrian.def | 2 +- Master/texmf-dist/tex/latex/datetime/dt-bahasa.def | 2 +- Master/texmf-dist/tex/latex/datetime/dt-basque.def | 2 +- Master/texmf-dist/tex/latex/datetime/dt-breton.def | 2 +- .../texmf-dist/tex/latex/datetime/dt-bulgarian.def | 2 +- .../texmf-dist/tex/latex/datetime/dt-catalan.def | 2 +- .../texmf-dist/tex/latex/datetime/dt-croatian.def | 2 +- Master/texmf-dist/tex/latex/datetime/dt-czech.def | 2 +- Master/texmf-dist/tex/latex/datetime/dt-danish.def | 2 +- Master/texmf-dist/tex/latex/datetime/dt-dutch.def | 2 +- .../texmf-dist/tex/latex/datetime/dt-esperanto.def | 2 +- .../texmf-dist/tex/latex/datetime/dt-estonian.def | 2 +- .../texmf-dist/tex/latex/datetime/dt-finnish.def | 2 +- Master/texmf-dist/tex/latex/datetime/dt-french.def | 2 +- .../texmf-dist/tex/latex/datetime/dt-galician.def | 2 +- Master/texmf-dist/tex/latex/datetime/dt-german.def | 23 ++- Master/texmf-dist/tex/latex/datetime/dt-greek.def | 2 +- Master/texmf-dist/tex/latex/datetime/dt-hebrew.def | 2 +- .../texmf-dist/tex/latex/datetime/dt-icelandic.def | 2 +- Master/texmf-dist/tex/latex/datetime/dt-irish.def | 2 +- .../texmf-dist/tex/latex/datetime/dt-italian.def | 2 +- Master/texmf-dist/tex/latex/datetime/dt-latin.def | 2 +- .../texmf-dist/tex/latex/datetime/dt-lsorbian.def | 2 +- Master/texmf-dist/tex/latex/datetime/dt-magyar.def | 2 +- .../texmf-dist/tex/latex/datetime/dt-naustrian.def | 2 +- .../texmf-dist/tex/latex/datetime/dt-ngerman.def | 23 ++- Master/texmf-dist/tex/latex/datetime/dt-norsk.def | 2 +- Master/texmf-dist/tex/latex/datetime/dt-polish.def | 2 +- .../texmf-dist/tex/latex/datetime/dt-portuges.def | 2 +- .../texmf-dist/tex/latex/datetime/dt-romanian.def | 2 +- .../texmf-dist/tex/latex/datetime/dt-russian.def | 2 +- Master/texmf-dist/tex/latex/datetime/dt-samin.def | 2 +- .../texmf-dist/tex/latex/datetime/dt-scottish.def | 2 +- .../texmf-dist/tex/latex/datetime/dt-serbian.def | 2 +- Master/texmf-dist/tex/latex/datetime/dt-slovak.def | 2 +- .../texmf-dist/tex/latex/datetime/dt-slovene.def | 2 +- .../texmf-dist/tex/latex/datetime/dt-spanish.def | 2 +- .../texmf-dist/tex/latex/datetime/dt-swedish.def | 2 +- .../texmf-dist/tex/latex/datetime/dt-turkish.def | 2 +- .../texmf-dist/tex/latex/datetime/dt-ukraineb.def | 2 +- .../texmf-dist/tex/latex/datetime/dt-usorbian.def | 2 +- Master/texmf-dist/tex/latex/datetime/dt-welsh.def | 2 +- Master/texmf-dist/tpm/datetime.tpm | 8 +- 52 files changed, 467 insertions(+), 122 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 Binary files a/Master/texmf-dist/doc/latex/datetime/datetime.pdf and b/Master/texmf-dist/doc/latex/datetime/datetime.pdf 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 --> -datetime.sty v2.49: Formatting Current Date and Time - +datetime.sty v2.51: Formatting Current Date and Time + @@ -34,10 +34,10 @@ original version by: Nikos Drakos, CBLU, University of Leeds

-

datetime.sty v2.49: Formatting Current Date and +

datetime.sty v2.51: Formatting Current Date and Time

Nicola L.C. Talbot

-

5 Dec 2006

+

30 Jan 2007


@@ -46,31 +46,31 @@ Contents @@ -208,7 +208,7 @@ Time Commands The format can be changed using the declaration \settimeformat{style}, where style is the name of the format1. Available + HREF="#foot382">1. Available formats are:
xxivtime
@@ -220,7 +220,7 @@ formats are:
oclock
Displays the current time as a string, e.g. Twenty-Eight minutes past Ten in the afternoon.2 + HREF="#foot134">2
@@ -271,7 +271,7 @@ Formating Dates

The command \pdfdate3 prints the date in the format required for + HREF="#foot175">3 prints the date in the format required for PDF files, e.g. if the date is 1 May 2004 and time is 22:02, \pdfdate 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 number is 1, otherwise only

The macro \formatdate{day}{month}{year}4 formats + HREF="#foot384">4 formats the specified date according to the current format of \today5. (Arguments + HREF="#foot385">5. (Arguments must all be integers.) For example, in combination with \longdate, the command
\formatdate{27}{9}{2004} @@ -365,7 +365,7 @@ September, 2004. You can ensure that a number is displayed with at least two digits by using the command \twodigit{num}6. + HREF="#foot239">6. This is of use if you want to define your own date or time formats. @@ -452,7 +452,7 @@ Saving Dates

It is possible to save a date for later use using the command: 7 + HREF="#foot272">7

\newdate{name}{day}{month}{year} @@ -650,7 +650,8 @@ juin.

There is currently only limited multilingual support for \dayofweekname and \shortdayofweekname (just -English, French, Portuguese and Spanish). You can add support for +English, French, Portuguese, Spanish and German8). You can add support for other languages by defining the commands \dayofweeknameidlang and \shortdayofweeknameidlang. 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

There is a datetime FAQ available at: -http://theoval.cmp.uea.ac.uk/~nlct/latex/packages/faq/

@@ -792,11 +793,11 @@ University of East Anglia Norwich. NR4 7TJ.
United Kingdom. -
http://theoval.cmp.uea.ac.uk/~nlct/


Footnotes

-
... format... format1
Note that the commands \xxivtime, \ampmtime and @@ -809,19 +810,19 @@ given by placing a backslash in front of style. So to \xxivtime and so on.
-
... afternoon.... afternoon.2
Version 2.43 fixed bug which caused an infinite loop on the hour.
-
... \pdfdate... \pdfdate3
thanks to Ulrich Dirr for asking about this
-
...year}...year}4
Note the name change since version 1.1. The command name was changed @@ -831,7 +832,7 @@ from \thedate file.
-
... +
... \today5
To be more precise, \ @@ -841,15 +842,21 @@ file. of \formatdate
-
...num}...num}6
New to version 2.2
-
... command:... command:7
Thanks to Denis Bitouzé for asking about this +
+
... German8
+
thanks +to Uwe Bieling for supplying the German names +


@@ -857,7 +864,7 @@ of \formatdate Nicola L. C. Talbot. School of Computing Sciences. University of East Anglia. -Last Modified: 2006-12-06 +Last Modified: 2007-01-30 diff --git a/Master/texmf-dist/source/latex/datetime/datetime.dtx b/Master/texmf-dist/source/latex/datetime/datetime.dtx index f1000ee8c4d..641a2b33013 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 2006/12/6 11:03 +% Created on 2007/1/30 22:55 %\fi %\iffalse %<*package> @@ -34,7 +34,7 @@ %\fi % \iffalse % Doc-Source file to use with LaTeX2e -% Copyright (C) 2006 Nicola Talbot, all rights reserved. +% Copyright (C) 2007 Nicola Talbot, all rights reserved. % \fi % \iffalse %<*driver> @@ -47,7 +47,7 @@ pdftitle={datetime.sty: A Date and Time Package}, pdfkeywords={date,time,LaTeX}]{hyperref} -\CheckSum{4458} +\CheckSum{4522} \newcommand{\stynamefmt}[1]{\textsf{#1}} \begin{document} @@ -58,12 +58,12 @@ % %\RecordChanges %\OnlyDescription -%\def\docdate{5 Dec 2006} +%\def\docdate{30 Jan 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.49: Formatting Current Date and +% \title{datetime.sty v2.51: Formatting Current Date and %Time} % \author{Nicola L.C. Talbot} % \date{\docdate} @@ -185,7 +185,7 @@ % \section{Time Commands} %\changes{v2.3}{1 May 2004}{Fixed minor bug in 'ampmtime. %(or more specifically, changed the way 'ampmtime, 'xxivtime -% and 'oclock are defined.)} +% and 'oclock are defined.)}\changes{v2.51}{30 Jan 2007}{fixed bug in 'ampmtime between midnight and 1am} %\DescribeMacro{\currenttime} % The current time is displayed using the command %\verb"\currenttime". @@ -536,7 +536,8 @@ % %There is currently only limited multilingual support for %\verb"\dayofweekname" and \verb!\shortdayofweekname! (just -%English, French, Portuguese and Spanish). You can add support for +%English, French, Portuguese, Spanish and German\footnote{thanks +%to Uwe Bieling for supplying the German names}). You can add support for %other languages by defining the commands %\verb'\dayofweeknameid'\meta{lang} and %\verb'\shortdayofweeknameid'\meta{lang}. Note that these @@ -559,7 +560,7 @@ %\or Saturday% %\fi} % -%\providecommand{\shortdayofweekidnameenglish}[1]{% +%\providecommand{\shortdayofweeknameidenglish}[1]{% %\ifcase#1\relax %\or Sun% %\or Mon% @@ -661,7 +662,7 @@ % This section documents the code for \texttt{datetime.sty} % \begin{macrocode} \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{datetime}[2006/12/05 v2.49 Date Time Package] +\ProvidesPackage{datetime}[2007/01/30 v2.51 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} @@ -690,6 +691,8 @@ \newif\if@dt@multilingual \@ifpackageloaded{babel}{% \@dt@multilingualtrue}{\@dt@multilingualfalse} +\@ifpackageloaded{ngerman}{% +\@dt@multilingualtrue}{\@dt@multilingualfalse} % \end{macrocode} % Define |\ordinaldate|. This is needed because some % languages only use an ordinal for the first day of @@ -721,7 +724,7 @@ \newcommand{\ordinaldate}[1]{% \if@dt@multilingual \@ifundefined{ordinaldate\languagename}{#1}{% -\csname ordinaldate\languagename\endcsname{#1}} +\csname ordinaldate\languagename\endcsname{#1}}% \else \ordinalnum{#1}% \fi} @@ -1419,11 +1422,17 @@ You can't create a new time format called "#1" as the command % 12-hour time: % \begin{macrocode} \newtimeformat{ampmtime}{% -\THEHOURXII\timeseparator\twodigit\THEMINUTE +\ifthenelse{\value{HOUR}=0}{12}{\THEHOURXII}\timeseparator\twodigit\THEMINUTE \ifthenelse{\value{HOUR}<12}{\amname}{% \ifthenelse{\time=720}{ \noon}{\pmname}}} % \end{macrocode} % Textual time: +% |\hourstring| will print |\midnight| if || is 0, otherwise +% will do |\Numberstring|. +% \begin{macrocode} +\newcommand*{\hourstring}[1]{% +\ifthenelse{\value{#1}=0}{\midnight}{\Numberstring{#1}}} +% \end{macrocode} % \begin{macrocode} \newtimeformat{oclock}{\ifthenelse{\time=0 \or \time=720}{% % \end{macrocode} @@ -1441,16 +1450,16 @@ You can't create a new time format called "#1" as the command % \begin{macrocode} \Numberstring{HOUR} \oclockstring}{% \ifthenelse{\value{MINUTE}=15}{% -\quarterpast\ \Numberstring{HOUR}}{% +\quarterpast\ \hourstring{HOUR}}{% \ifthenelse{\value{MINUTE}=30}{% -\halfpast\ \Numberstring{HOUR}}{% +\halfpast\ \hourstring{HOUR}}{% \ifthenelse{\value{MINUTE}=45}{% -\quarterto\ \Numberstring{TOHOUR}}{% +\quarterto\ \hourstring{TOHOUR}}{% \ifthenelse{\value{MINUTE}<30}{% \Numberstring{MINUTE}\ \ifthenelse{\value{MINUTE}=1}{minute}{minutes} -past \Numberstring{HOURXII}}{% +past \hourstring{HOURXII}}{% \Numberstring{TOMINUTE}\ \ifthenelse{% -\value{TOMINUTE}=1}{minute}{minutes} to \Numberstring{TOHOUR}}}}}}\ +\value{TOMINUTE}=1}{minute}{minutes} to \hourstring{TOHOUR}}}}}}% % \end{macrocode} % Now say whether it is morning or afternoon % \begin{macrocode} @@ -1458,11 +1467,11 @@ past \Numberstring{HOURXII}}{% % \end{macrocode} % Morning % \begin{macrocode} -\amstring}{% +\ifthenelse{\value{HOUR}=0}{}{\ \amstring}}{% % \end{macrocode} % Afternoon % \begin{macrocode} -\pmstring}}} +\ifthenelse{\value{TOHOUR}=0}{}{\ \pmstring}}}} % \end{macrocode} % Define textual strings used in the above. % \begin{macrocode} @@ -2478,6 +2487,30 @@ Month numbers should go from 1 to 12}% Month numbers should go from 1 (janvier) to 12 (decembre)}% \fi} % \end{macrocode} +% The following week day names were supplied by Uwe Bieling: +% \begin{macrocode} +\providecommand{\dayofweeknameidgerman}[1]{% +\ifcase#1\relax +\or Sonntag% +\or Montag% +\or Dienstag% +\or Mittwoch% +\or Donnerstag% +\or Freitag% +\or Samstag% +\fi} + +\providecommand{\shortdayofweeknameidgerman}[1]{% +\ifcase#1\relax +\or So% +\or Mo% +\or Di% +\or Mi% +\or Do% +\or Fr% +\or Sa% +\fi} +% \end{macrocode} % (Re)Define declaration to switch to this format. % \begin{macrocode} \DeclareRobustCommand*\dategerman{% @@ -2962,6 +2995,30 @@ Month numbers should go from 1 to 12}% Month numbers should go from 1 to 12}% \fi} % \end{macrocode} +% The following week day names were supplied by Uwe Bieling: +% \begin{macrocode} +\providecommand{\dayofweeknameidngerman}[1]{% +\ifcase#1\relax +\or Sonntag% +\or Montag% +\or Dienstag% +\or Mittwoch% +\or Donnerstag% +\or Freitag% +\or Samstag% +\fi} + +\providecommand{\shortdayofweeknameidngerman}[1]{% +\ifcase#1\relax +\or So% +\or Mo% +\or Di% +\or Mi% +\or Do% +\or Fr% +\or Sa% +\fi} +% \end{macrocode} % (Re)Define declaration to switch to this format. % \begin{macrocode} \DeclareRobustCommand*\datengerman{% @@ -3810,8 +3867,8 @@ Month numbers should go from 1 to 12}% % \begin{macrocode} # 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. @@ -4933,6 +4990,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); @@ -4949,10 +5048,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); - substr(&get_day_of_weekname($dow),0,3); + $dowsub = "get_short_day_of_weekname_$default_language"; + + if (defined ($dowsub)) + { + &$dowsub($dow); + } + else + { + substr(&get_day_of_weekname($dow),0,3); + } } sub do_cmd_dayofweeknameid{ diff --git a/Master/texmf-dist/source/latex/datetime/datetime.ins b/Master/texmf-dist/source/latex/datetime/datetime.ins index 96a7d8c875d..afd34260cc5 100644 --- a/Master/texmf-dist/source/latex/datetime/datetime.ins +++ b/Master/texmf-dist/source/latex/datetime/datetime.ins @@ -1,8 +1,8 @@ -% datetime.ins generated using makedtx version 0.91b 2006/12/6 11:03 +% datetime.ins generated using makedtx version 0.91b 2007/1/30 22:55 \input docstrip \preamble -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/tex/latex/datetime/datetime.sty b/Master/texmf-dist/tex/latex/datetime/datetime.sty index 9b5db911e7b..15f0e51d927 100644 --- a/Master/texmf-dist/tex/latex/datetime/datetime.sty +++ b/Master/texmf-dist/tex/latex/datetime/datetime.sty @@ -5,7 +5,7 @@ %% The original source files were: %% %% datetime.dtx (with options: `datetime.sty,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 @@ -27,7 +27,7 @@ %% Grave accent \` Left brace \{ Vertical bar \| %% Right brace \} Tilde \~} \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{datetime}[2006/12/05 v2.49 Date Time Package] +\ProvidesPackage{datetime}[2007/01/30 v2.51 Date Time Package] \RequirePackage{fmtcount} \newif\if@dt@nodate \@dt@nodatefalse @@ -35,6 +35,8 @@ \newif\if@dt@multilingual \@ifpackageloaded{babel}{% \@dt@multilingualtrue}{\@dt@multilingualfalse} +\@ifpackageloaded{ngerman}{% +\@dt@multilingualtrue}{\@dt@multilingualfalse} \newcommand{\ordinaldateenglish}[1]{\ordinalnum{#1}} \newcommand{\ordinaldatewelsh}[1]{% #1\ifnum#1=1\/\textsuperscript{a\~n}\fi} @@ -45,7 +47,7 @@ \newcommand{\ordinaldate}[1]{% \if@dt@multilingual \@ifundefined{ordinaldate\languagename}{#1}{% -\csname ordinaldate\languagename\endcsname{#1}} +\csname ordinaldate\languagename\endcsname{#1}}% \else \ordinalnum{#1}% \fi} @@ -514,27 +516,29 @@ You can't create a new time format called "#1" as the command \newtimeformat{xxivtime}{% \twodigit\THEHOUR\timeseparator\twodigit\THEMINUTE} \newtimeformat{ampmtime}{% -\THEHOURXII\timeseparator\twodigit\THEMINUTE +\ifthenelse{\value{HOUR}=0}{12}{\THEHOURXII}\timeseparator\twodigit\THEMINUTE \ifthenelse{\value{HOUR}<12}{\amname}{% \ifthenelse{\time=720}{ \noon}{\pmname}}} +\newcommand*{\hourstring}[1]{% +\ifthenelse{\value{#1}=0}{\midnight}{\Numberstring{#1}}} \newtimeformat{oclock}{\ifthenelse{\time=0 \or \time=720}{% \ifthenelse{\time=0}{\midnight}{\noon}}{% \ifthenelse{\value{MINUTE}=0}{% \Numberstring{HOUR} \oclockstring}{% \ifthenelse{\value{MINUTE}=15}{% -\quarterpast\ \Numberstring{HOUR}}{% +\quarterpast\ \hourstring{HOUR}}{% \ifthenelse{\value{MINUTE}=30}{% -\halfpast\ \Numberstring{HOUR}}{% +\halfpast\ \hourstring{HOUR}}{% \ifthenelse{\value{MINUTE}=45}{% -\quarterto\ \Numberstring{TOHOUR}}{% +\quarterto\ \hourstring{TOHOUR}}{% \ifthenelse{\value{MINUTE}<30}{% \Numberstring{MINUTE}\ \ifthenelse{\value{MINUTE}=1}{minute}{minutes} -past \Numberstring{HOURXII}}{% +past \hourstring{HOURXII}}{% \Numberstring{TOMINUTE}\ \ifthenelse{% -\value{TOMINUTE}=1}{minute}{minutes} to \Numberstring{TOHOUR}}}}}}\ +\value{TOMINUTE}=1}{minute}{minutes} to \hourstring{TOHOUR}}}}}}% \ifthenelse{\value{HOUR}<12}{% -\amstring}{% -\pmstring}}} +\ifthenelse{\value{HOUR}=0}{}{\ \amstring}}{% +\ifthenelse{\value{TOHOUR}=0}{}{\ \pmstring}}}} \providecommand{\amname}{am} \providecommand{\pmname}{pm} \providecommand{\amorpmname}{% diff --git a/Master/texmf-dist/tex/latex/datetime/dt-austrian.def b/Master/texmf-dist/tex/latex/datetime/dt-austrian.def index 23659ea6a0e..08160fc37f0 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-austrian.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-austrian.def @@ -5,7 +5,7 @@ %% The original source files were: %% %% datetime.dtx (with options: `dt-austrian.def,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/tex/latex/datetime/dt-bahasa.def b/Master/texmf-dist/tex/latex/datetime/dt-bahasa.def index b08519ba464..4a6705b7a24 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-bahasa.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-bahasa.def @@ -5,7 +5,7 @@ %% The original source files were: %% %% datetime.dtx (with options: `dt-bahasa.def,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/tex/latex/datetime/dt-basque.def b/Master/texmf-dist/tex/latex/datetime/dt-basque.def index cf5790e6320..e73658a2428 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-basque.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-basque.def @@ -5,7 +5,7 @@ %% The original source files were: %% %% datetime.dtx (with options: `dt-basque.def,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/tex/latex/datetime/dt-breton.def b/Master/texmf-dist/tex/latex/datetime/dt-breton.def index 120cea4de83..4084da67e45 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-breton.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-breton.def @@ -5,7 +5,7 @@ %% The original source files were: %% %% datetime.dtx (with options: `dt-breton.def,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/tex/latex/datetime/dt-bulgarian.def b/Master/texmf-dist/tex/latex/datetime/dt-bulgarian.def index e6989b3141a..882b4354292 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-bulgarian.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-bulgarian.def @@ -5,7 +5,7 @@ %% The original source files were: %% %% datetime.dtx (with options: `dt-bulgarian.def,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/tex/latex/datetime/dt-catalan.def b/Master/texmf-dist/tex/latex/datetime/dt-catalan.def index b3a6a5e39a5..e11fa95f253 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-catalan.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-catalan.def @@ -5,7 +5,7 @@ %% The original source files were: %% %% datetime.dtx (with options: `dt-catalan.def,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/tex/latex/datetime/dt-croatian.def b/Master/texmf-dist/tex/latex/datetime/dt-croatian.def index 9ca7aba1973..32789269b50 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-croatian.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-croatian.def @@ -5,7 +5,7 @@ %% The original source files were: %% %% datetime.dtx (with options: `dt-croatian.def,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/tex/latex/datetime/dt-czech.def b/Master/texmf-dist/tex/latex/datetime/dt-czech.def index 3c792b2b0d7..22f855fc496 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-czech.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-czech.def @@ -5,7 +5,7 @@ %% The original source files were: %% %% datetime.dtx (with options: `dt-czech.def,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/tex/latex/datetime/dt-danish.def b/Master/texmf-dist/tex/latex/datetime/dt-danish.def index 07113aed468..8c468351186 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-danish.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-danish.def @@ -5,7 +5,7 @@ %% The original source files were: %% %% datetime.dtx (with options: `dt-danish.def,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/tex/latex/datetime/dt-dutch.def b/Master/texmf-dist/tex/latex/datetime/dt-dutch.def index e7df8ea80e2..412518eaa1c 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-dutch.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-dutch.def @@ -5,7 +5,7 @@ %% The original source files were: %% %% datetime.dtx (with options: `dt-dutch.def,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/tex/latex/datetime/dt-esperanto.def b/Master/texmf-dist/tex/latex/datetime/dt-esperanto.def index 098ca7b7f83..5ed0f26dfbd 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-esperanto.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-esperanto.def @@ -5,7 +5,7 @@ %% The original source files were: %% %% datetime.dtx (with options: `dt-esperanto.def,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/tex/latex/datetime/dt-estonian.def b/Master/texmf-dist/tex/latex/datetime/dt-estonian.def index 15a97372e1f..eeb72497b39 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-estonian.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-estonian.def @@ -5,7 +5,7 @@ %% The original source files were: %% %% datetime.dtx (with options: `dt-estonian.def,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/tex/latex/datetime/dt-finnish.def b/Master/texmf-dist/tex/latex/datetime/dt-finnish.def index aa851516739..f4ecd266000 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-finnish.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-finnish.def @@ -5,7 +5,7 @@ %% The original source files were: %% %% datetime.dtx (with options: `dt-finnish.def,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/tex/latex/datetime/dt-french.def b/Master/texmf-dist/tex/latex/datetime/dt-french.def index 31254b4435b..d449d0260d2 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-french.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-french.def @@ -5,7 +5,7 @@ %% The original source files were: %% %% datetime.dtx (with options: `dt-french.def,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/tex/latex/datetime/dt-galician.def b/Master/texmf-dist/tex/latex/datetime/dt-galician.def index 3678b6b05ff..91c9ae81aff 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-galician.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-galician.def @@ -5,7 +5,7 @@ %% The original source files were: %% %% datetime.dtx (with options: `dt-galician.def,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/tex/latex/datetime/dt-german.def b/Master/texmf-dist/tex/latex/datetime/dt-german.def index 9949e1f99df..a0e3c96325d 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-german.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-german.def @@ -5,7 +5,7 @@ %% The original source files were: %% %% datetime.dtx (with options: `dt-german.def,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 @@ -48,6 +48,27 @@ Month numbers should go from 1 to 12}% \PackageError{datetime}{Invalid Month number \the\@orgargctr}{% Month numbers should go from 1 (janvier) to 12 (decembre)}% \fi} +\providecommand{\dayofweeknameidgerman}[1]{% +\ifcase#1\relax +\or Sonntag% +\or Montag% +\or Dienstag% +\or Mittwoch% +\or Donnerstag% +\or Freitag% +\or Samstag% +\fi} + +\providecommand{\shortdayofweeknameidgerman}[1]{% +\ifcase#1\relax +\or So% +\or Mo% +\or Di% +\or Mi% +\or Do% +\or Fr% +\or Sa% +\fi} \DeclareRobustCommand*\dategerman{% \renewcommand{\formatdate}[3]{% \@day=##1\relax\@month=##2\relax\@year=##3\relax diff --git a/Master/texmf-dist/tex/latex/datetime/dt-greek.def b/Master/texmf-dist/tex/latex/datetime/dt-greek.def index 7bf1ab560cd..543d478a1cd 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-greek.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-greek.def @@ -5,7 +5,7 @@ %% The original source files were: %% %% datetime.dtx (with options: `dt-greek.def,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/tex/latex/datetime/dt-hebrew.def b/Master/texmf-dist/tex/latex/datetime/dt-hebrew.def index 44a106dea4d..e11e6c0292b 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-hebrew.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-hebrew.def @@ -5,7 +5,7 @@ %% The original source files were: %% %% datetime.dtx (with options: `dt-hebrew.def,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/tex/latex/datetime/dt-icelandic.def b/Master/texmf-dist/tex/latex/datetime/dt-icelandic.def index 39c499bb955..65299b0403e 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-icelandic.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-icelandic.def @@ -5,7 +5,7 @@ %% The original source files were: %% %% datetime.dtx (with options: `dt-icelandic.def,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/tex/latex/datetime/dt-irish.def b/Master/texmf-dist/tex/latex/datetime/dt-irish.def index 7ce011042a0..62aad09e918 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-irish.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-irish.def @@ -5,7 +5,7 @@ %% The original source files were: %% %% datetime.dtx (with options: `dt-irish.def,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/tex/latex/datetime/dt-italian.def b/Master/texmf-dist/tex/latex/datetime/dt-italian.def index 3119861e113..17bbaaf31e6 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-italian.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-italian.def @@ -5,7 +5,7 @@ %% The original source files were: %% %% datetime.dtx (with options: `dt-italian.def,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/tex/latex/datetime/dt-latin.def b/Master/texmf-dist/tex/latex/datetime/dt-latin.def index 51e12f1d774..4f8c81d1bc8 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-latin.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-latin.def @@ -5,7 +5,7 @@ %% The original source files were: %% %% datetime.dtx (with options: `dt-latin.def,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/tex/latex/datetime/dt-lsorbian.def b/Master/texmf-dist/tex/latex/datetime/dt-lsorbian.def index 03e48c061fb..8882d057120 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-lsorbian.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-lsorbian.def @@ -5,7 +5,7 @@ %% The original source files were: %% %% datetime.dtx (with options: `dt-lsorbian.def,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/tex/latex/datetime/dt-magyar.def b/Master/texmf-dist/tex/latex/datetime/dt-magyar.def index 16dec8bdafb..bfa70e7b76c 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-magyar.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-magyar.def @@ -5,7 +5,7 @@ %% The original source files were: %% %% datetime.dtx (with options: `dt-magyar.def,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/tex/latex/datetime/dt-naustrian.def b/Master/texmf-dist/tex/latex/datetime/dt-naustrian.def index 472ff31c727..7495ff838aa 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-naustrian.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-naustrian.def @@ -5,7 +5,7 @@ %% The original source files were: %% %% datetime.dtx (with options: `dt-naustrian.def,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/tex/latex/datetime/dt-ngerman.def b/Master/texmf-dist/tex/latex/datetime/dt-ngerman.def index f66dc0fcf3b..dc19285e87e 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-ngerman.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-ngerman.def @@ -5,7 +5,7 @@ %% The original source files were: %% %% datetime.dtx (with options: `dt-ngerman.def,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 @@ -48,6 +48,27 @@ Month numbers should go from 1 to 12}% \PackageError{datetime}{Invalid Month number \the\@orgargctr}{% Month numbers should go from 1 to 12}% \fi} +\providecommand{\dayofweeknameidngerman}[1]{% +\ifcase#1\relax +\or Sonntag% +\or Montag% +\or Dienstag% +\or Mittwoch% +\or Donnerstag% +\or Freitag% +\or Samstag% +\fi} + +\providecommand{\shortdayofweeknameidngerman}[1]{% +\ifcase#1\relax +\or So% +\or Mo% +\or Di% +\or Mi% +\or Do% +\or Fr% +\or Sa% +\fi} \DeclareRobustCommand*\datengerman{% \renewcommand{\formatdate}[3]{% \@day=##1\relax\@month=##2\relax\@year=##3\relax diff --git a/Master/texmf-dist/tex/latex/datetime/dt-norsk.def b/Master/texmf-dist/tex/latex/datetime/dt-norsk.def index 6f0246a6e5e..63cd264616f 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-norsk.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-norsk.def @@ -5,7 +5,7 @@ %% The original source files were: %% %% datetime.dtx (with options: `dt-norsk.def,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/tex/latex/datetime/dt-polish.def b/Master/texmf-dist/tex/latex/datetime/dt-polish.def index f98fe986d78..58e04366cdd 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-polish.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-polish.def @@ -5,7 +5,7 @@ %% The original source files were: %% %% datetime.dtx (with options: `dt-polish.def,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/tex/latex/datetime/dt-portuges.def b/Master/texmf-dist/tex/latex/datetime/dt-portuges.def index 8a53bdbec5e..92ab0b689d8 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-portuges.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-portuges.def @@ -5,7 +5,7 @@ %% The original source files were: %% %% datetime.dtx (with options: `dt-portuges.def,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/tex/latex/datetime/dt-romanian.def b/Master/texmf-dist/tex/latex/datetime/dt-romanian.def index 345ee845746..aa805624bf0 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-romanian.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-romanian.def @@ -5,7 +5,7 @@ %% The original source files were: %% %% datetime.dtx (with options: `dt-romanian.def,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/tex/latex/datetime/dt-russian.def b/Master/texmf-dist/tex/latex/datetime/dt-russian.def index 180b0b254b8..04e87a85e95 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-russian.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-russian.def @@ -5,7 +5,7 @@ %% The original source files were: %% %% datetime.dtx (with options: `dt-russian.def,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/tex/latex/datetime/dt-samin.def b/Master/texmf-dist/tex/latex/datetime/dt-samin.def index 5e80c5a0ab1..01322c6c4b5 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-samin.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-samin.def @@ -5,7 +5,7 @@ %% The original source files were: %% %% datetime.dtx (with options: `dt-samin.def,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/tex/latex/datetime/dt-scottish.def b/Master/texmf-dist/tex/latex/datetime/dt-scottish.def index 0a8d4af1c0a..3d21c6de6a1 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-scottish.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-scottish.def @@ -5,7 +5,7 @@ %% The original source files were: %% %% datetime.dtx (with options: `dt-scottish.def,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/tex/latex/datetime/dt-serbian.def b/Master/texmf-dist/tex/latex/datetime/dt-serbian.def index 04cddd474bd..3c257274f19 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-serbian.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-serbian.def @@ -5,7 +5,7 @@ %% The original source files were: %% %% datetime.dtx (with options: `dt-serbian.def,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/tex/latex/datetime/dt-slovak.def b/Master/texmf-dist/tex/latex/datetime/dt-slovak.def index 03d62101dd7..5aa541c74bf 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-slovak.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-slovak.def @@ -5,7 +5,7 @@ %% The original source files were: %% %% datetime.dtx (with options: `dt-slovak.def,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/tex/latex/datetime/dt-slovene.def b/Master/texmf-dist/tex/latex/datetime/dt-slovene.def index b0e54f811e2..77fd8100783 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-slovene.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-slovene.def @@ -5,7 +5,7 @@ %% The original source files were: %% %% datetime.dtx (with options: `dt-slovene.def,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/tex/latex/datetime/dt-spanish.def b/Master/texmf-dist/tex/latex/datetime/dt-spanish.def index 4a3cea0e3e5..990916bd4c2 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-spanish.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-spanish.def @@ -5,7 +5,7 @@ %% The original source files were: %% %% datetime.dtx (with options: `dt-spanish.def,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/tex/latex/datetime/dt-swedish.def b/Master/texmf-dist/tex/latex/datetime/dt-swedish.def index 31b7bc09723..b195f69dbb8 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-swedish.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-swedish.def @@ -5,7 +5,7 @@ %% The original source files were: %% %% datetime.dtx (with options: `dt-swedish.def,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/tex/latex/datetime/dt-turkish.def b/Master/texmf-dist/tex/latex/datetime/dt-turkish.def index 859a24cb64b..284ed3f5350 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-turkish.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-turkish.def @@ -5,7 +5,7 @@ %% The original source files were: %% %% datetime.dtx (with options: `dt-turkish.def,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/tex/latex/datetime/dt-ukraineb.def b/Master/texmf-dist/tex/latex/datetime/dt-ukraineb.def index 89441a4c85f..0ea1d808fc0 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-ukraineb.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-ukraineb.def @@ -5,7 +5,7 @@ %% The original source files were: %% %% datetime.dtx (with options: `dt-ukraineb.def,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/tex/latex/datetime/dt-usorbian.def b/Master/texmf-dist/tex/latex/datetime/dt-usorbian.def index ee23e698ff8..45c60724eb0 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-usorbian.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-usorbian.def @@ -5,7 +5,7 @@ %% The original source files were: %% %% datetime.dtx (with options: `dt-usorbian.def,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/tex/latex/datetime/dt-welsh.def b/Master/texmf-dist/tex/latex/datetime/dt-welsh.def index 332c96fb410..b6a4cbd1d7a 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-welsh.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-welsh.def @@ -5,7 +5,7 @@ %% The original source files were: %% %% datetime.dtx (with options: `dt-welsh.def,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/tpm/datetime.tpm b/Master/texmf-dist/tpm/datetime.tpm index 926397e8661..60289d71c96 100644 --- a/Master/texmf-dist/tpm/datetime.tpm +++ b/Master/texmf-dist/tpm/datetime.tpm @@ -3,7 +3,7 @@ datetime Package - 2006/12/08 00:12:18 + 2007/04/08 17:46:17 1.1 rahtz @@ -24,7 +24,7 @@ as macros for displaying the value of LaTeX counter as a string 505705 - + texmf-dist/tex/latex/datetime/datetime.sty texmf-dist/tex/latex/datetime/dt-austrian.def texmf-dist/tex/latex/datetime/dt-bahasa.def @@ -70,7 +70,7 @@ texmf-dist/tex/latex/datetime/dt-usorbian.def texmf-dist/tex/latex/datetime/dt-welsh.def texmf-dist/tpm/datetime.tpm - + texmf-dist/doc/latex/datetime/CHANGES texmf-dist/doc/latex/datetime/README texmf-dist/doc/latex/datetime/datetime.pdf @@ -78,7 +78,7 @@ texmf-dist/doc/latex/datetime/datetime.perl texmf-dist/doc/latex/datetime/dt-sampl.tex texmf-dist/doc/latex/datetime/manual.html - + texmf-dist/source/latex/datetime/datetime.dtx texmf-dist/source/latex/datetime/datetime.ins -- cgit v1.2.3