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 ++++++++------ 6 files changed, 169 insertions(+), 42 deletions(-) (limited to 'Master/texmf-dist/doc/latex/datetime') 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 -- cgit v1.2.3