summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/datetime
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2015-03-21 22:00:17 +0000
committerKarl Berry <karl@freefriends.org>2015-03-21 22:00:17 +0000
commit8e7bc120761bfc8920f8868f8e451118ea5f47a8 (patch)
tree1a81eacc37e13038ba914932eaf1827d6e60a0e1 /Master/texmf-dist/source/latex/datetime
parent23f0be67724ea17f3b1236d2f5f5cbee74f650f9 (diff)
datetime (21mar15)
git-svn-id: svn://tug.org/texlive/trunk@36583 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/datetime')
-rw-r--r--Master/texmf-dist/source/latex/datetime/datetime.dtx192
-rw-r--r--Master/texmf-dist/source/latex/datetime/datetime.ins4
2 files changed, 131 insertions, 65 deletions
diff --git a/Master/texmf-dist/source/latex/datetime/datetime.dtx b/Master/texmf-dist/source/latex/datetime/datetime.dtx
index 0e11ef730c0..18140e3fb5d 100644
--- a/Master/texmf-dist/source/latex/datetime/datetime.dtx
+++ b/Master/texmf-dist/source/latex/datetime/datetime.dtx
@@ -1,18 +1,18 @@
%\iffalse
-% datetime.dtx generated using makedtx version 0.94b (c) Nicola Talbot
+% datetime.dtx generated using makedtx version 1.1 (c) Nicola Talbot
% Command line args:
-% -macrocode "datetime.perl"
+% -doc "datetime-manual.tex"
% -setambles ".*\.perl=>\nopreamble\nopostamble"
+% -author "Nicola Talbot"
+% -macrocode "datetime.perl"
% -comment "datetime.perl"
% -comment "dt-.+\.tex"
% -src "(.+)\.(sty)=>\1.\2"
% -src "(.+)\.(def)=>\1.\2"
% -src "(dt-.+)\.(tex)=>\1.\2"
% -src "datetime.perl\Z=>datetime.perl"
-% -doc "datetime-manual.tex"
-% -author "Nicola Talbot"
% datetime
-% Created on 2013/9/10 11:38
+% Created on 2015/3/20 16:54
%\fi
%\iffalse
%<*package>
@@ -35,7 +35,7 @@
%\fi
% \iffalse
% Doc-Source file to use with LaTeX2e
-% Copyright (C) 2013 Nicola Talbot, all rights reserved.
+% Copyright (C) 2015 Nicola Talbot, all rights reserved.
% \fi
% \iffalse
%<*driver>
@@ -59,14 +59,22 @@
%\RecordChanges
%\OnlyDescription
%
-%\title{datetime.sty v2.59:
+%\title{datetime.sty v2.60:
%Formatting Current Date and Time}
% \author{Nicola L. C. Talbot\\[10pt]
% Dickimaw Books\\
% \url{http://www.dickimaw-books.com/}}
-% \date{2013-09-10}
+% \date{2015-03-20}
% \maketitle
+%
+%\begin{important}
+%This is the last version of this package. The replacement package is
+%called \sty{datetime2} and will be released shortly after the
+%this final version.
+%\end{important}
+%
% \tableofcontents
+%
% \section{Introduction}
%\changes{1.0}{2000/08/08}{First release}
%\changes{1.01}{2000/09/18}{Documentation added}
@@ -625,49 +633,6 @@
%multilingual support. See the \sty{fmtcount} documentation
%for further details.
%
-%There is currently only \emph{limited} multilingual support for
-%\ics{dayofweekname} and \ics{shortdayofweekname} (just
-%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
-%\cs{dayofweeknameid}\meta{lang} and
-%\cs{shortdayofweeknameid}\meta{lang}. Note that these
-%commands only take \emph{one} argument which should be
-%a number from~1 to~7 indicating the day of the week.
-%
-%You can use the following as templates. Replace
-%\texttt{english} with the name of your language (as given
-%by \ics{languagename}) and replace \texttt{Sunday}
-%etc as appropriate:
-%\begin{verbatim}
-%\providecommand*{\dayofweeknameidenglish}[1]{%
-%\ifcase#1\relax
-%\or Sunday%
-%\or Monday%
-%\or Tuesday%
-%\or Wednesday%
-%\or Thursday%
-%\or Friday%
-%\or Saturday%
-%\fi}
-%
-%\providecommand*{\shortdayofweeknameidenglish}[1]{%
-%\ifcase#1\relax
-%\or Sun%
-%\or Mon%
-%\or Tue%
-%\or Wed%
-%\or Thu%
-%\or Fri%
-%\or Sat%
-%\fi}
-%\end{verbatim}
-%If you want them added to future versions of
-%\sty{datetime}, please post them on my feature request form at:
-%\url{http://www.dickimaw-books.com/feature-request.html}.
-%Please use \LaTeX\ commands to produce accents to ensure encoding
-%independence. (For example, use \verb|\'e| instead of \'{e}.)
-%
%\section{Registers}
%
%\TeX\ provides \ics{day}, \ics{month} and \ics{year} registers. In
@@ -860,7 +825,7 @@
% This section documents the code for \texttt{datetime.sty}
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{datetime}[2013/09/10 v2.59 Date Time Package]
+\ProvidesPackage{datetime}[2015/03/20 v2.60 Date Time Package]
% \end{macrocode}
%\changes{2.59}{2013/09/10}{new loads etoolbox}
% \begin{macrocode}
@@ -977,7 +942,7 @@
\newcount\@year
% \end{macrocode}
%\begin{macro}{\longdate}
-% Long date format. (This is the default in the absense of package
+% Long date format. (This is the default in the absence of package
% options, babel and datetime.cfg settings.)
% \begin{macrocode}
\DeclareRobustCommand*{\longdate}{%
@@ -1446,9 +1411,10 @@ past \hourstring{HOURXII}}{%
% \end{macrocode}
%\end{macro}
%\begin{macro}{\amorpmname}
+%\changes{2.60}{2015-03-20}{fixed bug}
% \begin{macrocode}
\providecommand*{\amorpmname}{%
-\ifthenelse{\value{HOUR}>12}{\pmname}{\amname}}
+\ifthenelse{\value{HOUR}>11}{\pmname}{\amname}}
% \end{macrocode}
%\end{macro}
%\begin{macro}{\amstring}
@@ -2908,7 +2874,7 @@ Month numbers should go from 1 (sijecnja) to 12 (prosinca)}%
\or kolovoza%
\or rujna%
\or listopada%
-\or studenog%
+\or studenoga%
\or prosinca%
\else
\PackageError{datetime}{Invalid Month number \the\@orgargctr}{%
@@ -2934,7 +2900,7 @@ Month numbers should go from 1 (sijecnja) to 12 (prosinca)}%
\or kolovoza%
\or rujna%
\or listopada%
-\or studenog%
+\or studenoga%
\or prosinca%
\else
\PackageError{datetime}{Invalid Month number \the\@orgargctr}{%
@@ -3110,7 +3076,7 @@ Month numbers should go from 1 to 12}%
%\subsubsection{Dutch}
% Identify file
% \begin{macrocode}
-\ProvidesFile{dt-dutch.def}[2013/09/10]%
+\ProvidesFile{dt-dutch.def}[2015/03/20]%
% \end{macrocode}
% Define month names.
% \begin{macrocode}
@@ -3145,6 +3111,30 @@ Month numbers should go from 1 to 12}%
\number\@day~\monthnamedutch[\@month]\space \number\@year}}%
\global\let\datedutch\datedutch
% \end{macrocode}
+% Day of week name provided by multiple people.
+% \begin{macrocode}
+\providecommand*{\dayofweeknameiddutch}[1]{%
+\ifcase#1\relax
+\or zondag%
+\or maandag%
+\or dinsdag%
+\or woensdag%
+\or donderdag%
+\or vrijdag%
+\or zaterdag%
+\fi}
+
+\providecommand*{\shortdayofweeknameiddutch}[1]{%
+\ifcase#1\relax
+\or zo%
+\or ma%
+\or di%
+\or wo%
+\or do%
+\or vr%
+\or za%
+\fi}
+% \end{macrocode}
%\iffalse
% \begin{macrocode}
%</dt-dutch.def>
@@ -3385,6 +3375,30 @@ Month numbers should go from 1 (janvier) to 12 (decembre)}%
\monthnamefrench[\@month]\space \number\@year}}%
\global\let\datefrench\datefrench
% \end{macrocode}
+% Short month names provided by Rapha\"el Pinson
+% \begin{macrocode}
+\providecommand{\shortmonthnamefrench}[1][\month]{%
+\@orgargctr=#1\relax
+\ifcase\@orgargctr
+\PackageError{datetime}{Invalid Month number \the\@orgargctr}{%
+Month numbers should go from 1 (jan.) to 12 (dec.)}%
+\or jan.%
+\or f\'evr.%
+\or mars%
+\or avr.%
+\or mai%
+\or juin%
+\or juill.%
+\or ao\^ut%
+\or sept.%
+\or oct.%
+\or nov.%
+\or d\'ec.%
+\else
+\PackageError{datetime}{Invalid Month number \the\@orgargctr}{%
+Month numbers should go from 1 (jan.) to 12 (dec.)}%
+\fi}
+% \end{macrocode}
%\iffalse
% \begin{macrocode}
%</dt-french.def>
@@ -3694,9 +3708,9 @@ Month numbers should go from 1 to 12}%
%\fi
%\subsubsection{Italian}
% \begin{macrocode}
-\ProvidesFile{dt-italian.def}[2013/09/10]%
+\ProvidesFile{dt-italian.def}[2015/03/20]%
% \end{macrocode}
-% Translations provided by Giada Ermacora
+% Translations provided by Giada Ermacora and Marco Coppola
% \begin{macrocode}
\providecommand{\dayofweeknameiditalian}[1]{%
\ifcase#1\relax
@@ -4179,6 +4193,29 @@ Month numbers should go from 1 to 12}%
\number\@day.~\monthnamenorsk[\@month]\space\number\@year}}%
\global\let\datenorsk\datenorsk
% \end{macrocode}
+% Day of week provided by Tor Inge Birkenes
+% \begin{macrocode}
+\providecommand*{\dayofweeknameidnorsk}[1]{%
+\ifcase#1\relax
+\or S\o{}ndag%
+\or Mandag%
+\or Tirsdag%
+\or Onsdag%
+\or Torsdag%
+\or Fredag%
+\or L\o{}rdag%
+\fi}
+\providecommand*{\shortdayofweeknameidnorsk}[1]{%
+\ifcase#1\relax
+\or S\o{}n%
+\or Man%
+\or Tir%
+\or Ons%
+\or Tor%
+\or Fre%
+\or L\o{}r%
+\fi}
+% \end{macrocode}
%\iffalse
% \begin{macrocode}
%</dt-norsk.def>
@@ -4829,6 +4866,29 @@ Month numbers should go from 1 to 12}%
}%
\global\let\datesdmy\datesdmy
% \end{macrocode}
+% Day of weekname provided by Johan Sj\"oblom
+% \begin{macrocode}
+\providecommand*{\dayofweeknameidswedish}[1]{%
+\ifcase#1\relax
+\or S\"ondag%
+\or M\aa{}ndag%
+\or Tisdag%
+\or Onsdag%
+\or Torsdag%
+\or Fredag%
+\or L\"ordag%
+\fi}
+\providecommand*{\shortdayofweeknameidswedish}[1]{%
+\ifcase#1\relax
+\or S\"on%
+\or M\aa{}n%
+\or Tis%
+\or Ons%
+\or Tor%
+\or Fre%
+\or L\"or%
+\fi}
+% \end{macrocode}
%\iffalse
% \begin{macrocode}
%</dt-swedish.def>
@@ -5148,13 +5208,19 @@ Month numbers should go from 1 to 12}%
\global\let\monthnamewelsh\monthnamewelsh
% \end{macrocode}
% (Re)Define declaration to switch to this format.
+%\changes{5.60}{2014-09-25}{removed `a viz'}
% \begin{macrocode}
\DeclareRobustCommand*\datewelsh{%
\renewcommand{\formatdate}[3]{%
-\@day=##1\relax\@month=##2\relax\@year=##3\relax
-\ifnum\@day=1\relax 1\/$^{\mathrm{a\tilde{n}}}$\else
-\number\@day\fi \space a\space viz\space
-\monthnamewelsh[\@month]\space\number\@year}}%
+ \@day=##1\relax\@month=##2\relax\@year=##3\relax
+ \ifnum\@day=1\relax
+ 1\/$^{\mathrm{a\tilde{n}}}$%
+ \else
+ \number\@day
+ \fi
+ \space
+ \monthnamewelsh[\@month]\space\number\@year}%
+}%
\global\let\datewelsh\datewelsh
% \end{macrocode}
% \subsection{LaTeX2HTML Perl Script}
diff --git a/Master/texmf-dist/source/latex/datetime/datetime.ins b/Master/texmf-dist/source/latex/datetime/datetime.ins
index a80c911d6b8..e1bf4c301b4 100644
--- a/Master/texmf-dist/source/latex/datetime/datetime.ins
+++ b/Master/texmf-dist/source/latex/datetime/datetime.ins
@@ -1,10 +1,10 @@
-% datetime.ins generated using makedtx version 0.94b 2013/9/10 11:38
+% datetime.ins generated using makedtx version 1.1 2015/3/20 16:54
\input docstrip
\preamble
datetime.dtx
- Copyright 2013 Nicola Talbot
+ Copyright 2015 Nicola Talbot
This work may be distributed and/or modified under the
conditions of the LaTeX Project Public License, either version 1.3