diff options
author | Karl Berry <karl@freefriends.org> | 2015-05-01 21:53:29 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2015-05-01 21:53:29 +0000 |
commit | e49e8bc0b7e9222bc4e40d2e3b0298262c78380a (patch) | |
tree | 9c65ceb8e40731b6e1552c339526cc12a132a16c /Master/texmf-dist/tex/latex/datetime2-italian/datetime2-italian.ldf | |
parent | f8381b4c7eb3d20b0c6dd90807d1d05a9429e167 (diff) |
datetime2-italian (1may15)
git-svn-id: svn://tug.org/texlive/trunk@37146 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/datetime2-italian/datetime2-italian.ldf')
-rw-r--r-- | Master/texmf-dist/tex/latex/datetime2-italian/datetime2-italian.ldf | 49 |
1 files changed, 46 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/datetime2-italian/datetime2-italian.ldf b/Master/texmf-dist/tex/latex/datetime2-italian/datetime2-italian.ldf index 968f59a5133..3420014bd74 100644 --- a/Master/texmf-dist/tex/latex/datetime2-italian/datetime2-italian.ldf +++ b/Master/texmf-dist/tex/latex/datetime2-italian/datetime2-italian.ldf @@ -18,6 +18,7 @@ %% version 2005/12/01 or later. %% %% The Current Maintainer of this work is Claudio Duchi +%% claduc at libero dot it %% %% This work has the LPPL maintenance status `maintained'. %% @@ -41,7 +42,7 @@ %% Right bracket \] Circumflex \^ Underscore \_ %% Grave accent \` Left brace \{ Vertical bar \| %% Right brace \} Tilde \~} -\ProvidesDateTimeModule{italian}[2015/04/10 v1.1] +\ProvidesDateTimeModule{italian}[2015/05/01 v1.3] \RequirePackage{ifxetex,ifluatex} \ifxetex \RequireDateTimeModule{italian-utf8} @@ -132,7 +133,7 @@ }% {% time style \renewcommand*\DTMitaliantimesep{\DTMitaliantimesep}% -\DTMsettimestyle{default}%ampm +\DTMsettimestyle{default}% }% {% zone style \DTMresetzones @@ -290,11 +291,53 @@ \fi }% }% + \DTMnewtimestyle + {italian-twenty-four}% label + {% + \renewcommand*\DTMdisplaytime[3]{% + \ifnum##2=0 + \ifnum##1=12 + \DTMtexorpdfstring + {\DTMitalianampmfmt{\DTMitaliannoon}}% + {\DTMitaliannoon}% + \else + \ifnum##1=0 + \DTMtexorpdfstring + {\DTMitalianampmfmt{\DTMitalianmidnight}}% + {\DTMitalianmidnight}% + \else + \ifnum##1=24 + \DTMtexorpdfstring + {\DTMitalianampmfmt{\DTMitalianmidnight}}% + {\DTMitalianmidnight}% + \else + \ifnum##1<12 + \DTMtwodigits{##1}\DTMitaliantimesep\DTMtwodigits{##2}% + \else + \DTMtwodigits{##1}\DTMitaliantimesep\DTMtwodigits{##2}% + \fi + \fi + \fi + \fi + \else + \ifnum##1<13 + \ifnum##1=0 + \DTMtwodigits{##1}% + \else + \DTMtwodigits{##1}\relax + \fi + \DTMitaliantimesep\DTMtwodigits{##2}% + \else + \DTMtwodigits{##1}\relax + \DTMitaliantimesep\DTMtwodigits{##2}% + \fi + \fi + }% + }% \newcommand*{\DTMitalianzonemaps}{% \DTMdefzonemap{01}{00}{CET}% \DTMdefzonemap{02}{00}{CEST}% } - \DTMifcaseregional {}% do nothing {\DTMsetstyle{italian}} |