From 77f09e13542d0a67a8deb5ac7cabca478878d2e9 Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Mon, 10 Aug 2015 22:24:32 +0000
Subject: datetime2-it-fulltext (10aug15)

git-svn-id: svn://tug.org/texlive/trunk@38093 c570f23f-e606-0410-a88d-b1316a301751
---
 .../datetime2-it-fulltext.sty                      | 461 +++++++++++++++------
 1 file changed, 344 insertions(+), 117 deletions(-)

(limited to 'Master/texmf-dist/tex/latex/datetime2-it-fulltext/datetime2-it-fulltext.sty')

diff --git a/Master/texmf-dist/tex/latex/datetime2-it-fulltext/datetime2-it-fulltext.sty b/Master/texmf-dist/tex/latex/datetime2-it-fulltext/datetime2-it-fulltext.sty
index cfe1c66a8ab..a3752d30514 100644
--- a/Master/texmf-dist/tex/latex/datetime2-it-fulltext/datetime2-it-fulltext.sty
+++ b/Master/texmf-dist/tex/latex/datetime2-it-fulltext/datetime2-it-fulltext.sty
@@ -20,13 +20,8 @@
 %%  This work has the LPPL maintenance status `maintained'.
 %% 
 %%  The Current Maintainer of this work is Claudio Duchi.
-%% claduc at libero dot it
 %% 
-%% 
-%%  This work consists of the files datetime2-it-fulltext.dtx and
-%%  datetime2-it-fulltext.ins and the derived files
-%%  datetime2-it-fulltext.sty, datetime2-it-fulltext-ascii.ldf,
-%%  datetime2-it-fulltext-utf8.ldf.
+%%  This work consists of the files datetime2-it-fulltext.dtx and datetime2-it-fulltext.ins and the derived files datetime2-it-fulltext.sty, datetime2-it-fulltext-utf8.ldf, datetime2-it-fulltext-ascii.ldf.
 %% 
 %% \CharacterTable
 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
@@ -44,7 +39,7 @@
 %%   Grave accent  \`     Left brace    \{     Vertical bar  \|
 %%   Right brace   \}     Tilde         \~}
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{datetime2-it-fulltext}[2015/05/01 v1.0]
+\ProvidesPackage{datetime2-it-fulltext}[2015/08/06 v1.6]
 \DeclareOption*{\PassOptionsToPackage{\CurrentOption}{datetime2}}
 \ProcessOptions
 \RequirePackage{datetime2}
@@ -63,19 +58,25 @@
 \RequireDateTimeModule{italian}
 \undef\CurrentTrackedDialect
 \newcommand*\DTMitfulltextmonthyearsep{,\space}
+\newcommand{\DTMitore}[1]{%
+\ifcase#1\DTMitalianmidnight\or\DTMoneatnightstring\else\printnumeroinparole{#1}\fi}%
+\newcommand{\DTMitminuti}[1]{%
+\ifcase#1\DTMitzerominutsestring\or\DTMitoneminutestring%
+\else\printnumeroinparole{#1}\space\DTMitminutesstring\fi}%
+\newcommand{\DTMitsecondi}[1]{%
+\ifcase#1\printnumeroinparole{#1}\space\DTMitsecondsstring%
+\or\DTMitonesecondstring\space\DTMitsecondstring%
+\else\printnumeroinparole{#1}\space\DTMitsecondsstring%
+\fi}%
 \DTMnewdatestyle{it-fulltext}{%
 \renewcommand*\DTMdisplaydate[4]{%
 \ifDTMshowdow
 \ifnum##4>-1
-\DTMitalianweekdayname{##4}\space%
-\fi
-\fi
+\DTMitalianweekdayname{##4}\space\fi\fi%
 \ifnum##3=1\DTMitthefirstoneofthemonth\space\DTMitalianmonthname{##2}%
 \DTMitfulltextmonthyearsep\protect\printnumeroinparole{##1}\space%
 \else\protect\printnumeroinparole{##3}\space\DTMitalianmonthname{##2}%
-\DTMitfulltextmonthyearsep\protect\printnumeroinparole{##1}\fi%
-}%
-}%
+\DTMitfulltextmonthyearsep\protect\printnumeroinparole{##1}\fi}}%
 \DTMsetdatestyle{it-fulltext}
 \DTMnewtimestyle{it-fulltext}{%
 \renewcommand\DTMdisplaytime[3]{%
@@ -83,149 +84,105 @@
 {test {\ifnumequal{##2}{0}} and
 (test {\ifnumequal{##1}{0}}
 or test {\ifnumequal{##1}{12}}
-or test {\ifnumequal{##1}{24}}
-)
-}%
-{%
-\ifnum##1=12\DTMitaliannoon\else\DTMitalianmidnight%
-\fi
-}%
-{%
-\ifnum##2=0\ifboolexpr{ test {\ifnumcomp{##1}{=}{1}} or test {\ifnumcomp{##1}{=}{13}}}
+or test {\ifnumequal{##1}{24}})}%
+{\ifnum##1=12\DTMitaliannoon\else\DTMitalianmidnight\fi}%
+{\ifnum##2=0\ifboolexpr{ test {\ifnumcomp{##1}{=}{1}} or test {\ifnumcomp{##1}{=}{13}}}
 {\DTMoneatnightstring\space\DTMitoclockstring}%
-{\ifnum##1>12\protect\printnumeroinparole{\numexpr##1-12}\space\DTMitoclockstring\else\protect\printnumeroinparole{##1}\space\DTMitoclockstring\fi}%
+{\ifnum##1>12\protect\printnumeroinparole{\numexpr##1-12}\space\DTMitoclockstring
+\else\protect\printnumeroinparole{##1}\space\DTMitoclockstring\fi}%
 \else
 \ifnum##2<31
 \ifnum##2=15
 \ifnum##1=1\DTMquarterpaststringTWO\else
 \ifboolexpr{ test {\ifnumcomp{##1}{=}{12}} or test {\ifnumcomp{##1}{=}{0}} or test {\ifnumcomp{##1}{=}{24}}}
-{\DTMquarterpaststringONE\space}%
-{\ifnum##1=13\DTMquarterpaststringTWO\else\DTMquarterpaststringTHREE\space\fi}%
+{\DTMquarterpaststringONE}%
+{\ifnum##1=13\DTMquarterpaststringTWO\else\DTMquarterpaststringTHREE\fi}%
 \fi%
 \else%
-\ifnum##2=30
+\ifnum##2=30%
 \ifboolexpr{ test {\ifnumcomp{##1}{=}{1}} or test {\ifnumcomp{##1}{=}{13}}}
 {\DTMhalfpaststringTWO}%
-{\ifboolexpr{ test {\ifnumcomp{##1}{=}{0}} or test {\ifnumcomp{##1}{=}{24}} or test {\ifnumcomp{##1}{=}{12}}}
-{\DTMhalfpaststringONE\space}%
-{\DTMhalfpaststringTHREE\space}%
-}%
+{\ifboolexpr{ test {\ifnumcomp{##1}{=}{0}} or test {\ifnumcomp{##1}{=}{24}} or test {\ifnumcomp{##1}{=}{12}}}%
+{\DTMhalfpaststringONE}%
+{\DTMhalfpaststringTHREE}}%
 \else%
-\ifnum##2=1\DTMoneminutestring\space\else\protect\printnumeroinparole{##2}\space%
-\fi
+\ifnum##2=1\DTMoneminutestring\else\protect\printnumeroinparole{##2}\space%
+\fi%
 \ifnum##2=1
 \ifboolexpr{ test {\ifnumcomp{##1}{=}{12}} or test {\ifnumcomp{##1}{=}{0}} or test {\ifnumcomp{##1}{=}{24}}}
-{\DTMminutepaststringONE\space}%one
+{\DTMminutepaststringONE}%
 {\ifboolexpr{ test {\ifnumcomp{##1}{=}{13}} or test {\ifnumcomp{##1}{=}{1}}}
-{\DTMminutepaststringTWO}%two
-{\DTMminutepaststringTHREE\space}%three
-}%
+{\DTMminutepaststringTWO}%
+{\DTMminutepaststringTHREE}}%
 \else
-\ifboolexpr{ test {\ifnumcomp{##1}{=}{12}} or test {\ifnumcomp{##1}{=}{0}}or test {\ifnumcomp{##1}{=}{24}} }
-{\DTMminutespaststringONE\space}%THREE
+\ifboolexpr{ test {\ifnumcomp{##1}{=}{12}} or test {\ifnumcomp{##1}{=}{0}}or test {\ifnumcomp{##1}{=}{24}}}
+{\DTMminutespaststringONE}%THREE
 {\ifboolexpr{ test {\ifnumcomp{##1}{=}{13}} or test {\ifnumcomp{##1}{=}{1}}}
 {\DTMminutespaststringTWO}%TWO
-{\DTMminutespaststringTHREE\space}%
-}%
-\fi
-\fi%
-\fi%
+{\DTMminutespaststringTHREE}}\fi\fi\fi%
 \ifnum##1>12
-\ifnum##1=24
-\DTMitalianmidnight%
+\ifnum##1=24\DTMitalianmidnight%
 \else
 \ifnum##1=13\DTMoneatnightstring\else\protect\printnumeroinparole{\numexpr##1-12}\fi%
 \fi%
 \else
-\ifnum##1=0
-\DTMitalianmidnight
+\ifnum##1=0\DTMitalianmidnight%
 \else
-\ifnum##1=1\DTMoneatnightstring\else\ifnum##1=12\DTMitaliannoon\else\protect\printnumeroinparole{##1}\fi\fi%
-\fi
-\fi
+\ifnum##1=1\DTMoneatnightstring\else\ifnum##1=12\DTMitaliannoon\else\protect\printnumeroinparole{##1}\fi\fi
+\fi%
+\fi%
 \else
 \ifnum##2=45
 \ifboolexpr{ test {\ifnumcomp{##1}{=}{12}} or test {\ifnumcomp{##1}{=}{0}}or test {\ifnumcomp{##1}{=}{24}}}
 {\DTMquartertostringTWO}%
 {\ifboolexpr{ test {\ifnumcomp{##1}{=}{11}} or test {\ifnumcomp{##1}{=}{23}}}
-{\DTMquartertostringONE\space}%
-{\DTMquartertostringTHREE\space}%
-}%
+{\DTMquartertostringONE}%
+{\DTMquartertostringTHREE}}%
 \else
-\ifnum##2=59\DTMoneminutestring\space\else\protect\printnumeroinparole{\numexpr60-##2}\fi
+\ifnum##2=59\DTMoneminutestring\else\protect\printnumeroinparole{\numexpr60-##2}\fi
 \ifnum##2=59
 \ifboolexpr{ test {\ifnumcomp{##1}{=}{0}} or test {\ifnumcomp{##1}{=}{12}}or test {\ifnumcomp{##1}{=}{24}}}
 {\DTMminutetostringTWO}%
 {\ifboolexpr{ test {\ifnumcomp{##1}{=}{11}} or test {\ifnumcomp{##1}{=}{23}}}
 {\DTMminutetostringONE\space}%
-{\DTMminutetostringTHREE\space}%
-}%
+{\DTMminutetostringTHREE\space}}%
 \else\space
 \ifboolexpr{ test {\ifnumcomp{##1}{=}{0}} or test {\ifnumcomp{##1}{=}{24}}or test {\ifnumcomp{##1}{=}{12}}}%
 {\DTMminutestostringTWO}%
 {\ifboolexpr{ test {\ifnumcomp{##1}{=}{11}} or test {\ifnumcomp{##1}{=}{23}}}
 {\DTMminutestostringONE\space}%
-{\DTMminutestostringTHREE\space}%
-}%
-\fi
-\fi
+{\DTMminutestostringTHREE\space}}\fi\fi%
 \ifnum##1>12
-\ifnum##1=24
-\DTMoneatnightstring%
+\ifnum##1=24\DTMoneatnightstring%
 \else
-\ifnum##1=23\DTMitalianmidnight\else\protect\printnumeroinparole{\numexpr##1-11}%
-\fi
-\fi
+\ifnum##1=23\DTMitalianmidnight\else\protect\printnumeroinparole{\numexpr##1-11}\fi\fi%
 \else
 \ifnum##1=12\DTMoneatnightstring\space\DTMitafternoonstring%
 \else
-\ifnum##1=0\DTMoneatnightstring%
+\ifnum##1=0\DTMoneatnightstring\space%
 \else%
-\ifnum##1=11\DTMitaliannoon\else\protect\printnumeroinparole{\numexpr##1+1}\fi
-\fi%
-\fi
-\fi
-\fi
-\fi
+\ifnum##1=11\DTMitaliannoon\else\protect\printnumeroinparole{\numexpr##1+1}\fi\fi\fi\fi\fi\fi%
 \ifnum##1>11
 \ifnum##1=23
-\ifnum##2<31
-\space\DTMitafternoonstring%
-\fi
+\ifnum##2<31\space\DTMitafternoonstring\fi%
 \else
 \ifnum##1=24
-\ifnum##2>30
-\space\DTMitmorningstring%
-\fi
+\ifnum##2>30\space\DTMitmorningstring\fi%
 \else
-\ifnum##1=12\space\else\space\DTMitafternoonstring\fi
-\fi
-\fi
+\ifnum##1=12\space\else\space\DTMitafternoonstring\fi\fi\fi%
 \else
 \ifnum##1>0
-\ifnum##1=11\else\space\DTMitmorningstring\fi
+\ifnum##1=11\else\space\DTMitmorningstring\fi%
 \else
-\ifnum##2>30
-\space\DTMitmorningstring
-\fi
-\fi
-\fi
-}%
-}%
-}%
+\ifnum##2>30\space\DTMitmorningstring\fi\fi\fi}}}%
 \DTMnewdatestyle{it-fulltext-twenty-four}{%
 \renewcommand*\DTMdisplaydate[4]{%
 \ifDTMshowdow
-\ifnum##4>-1
-\DTMitalianweekdayname{##4}\space%
-\fi
-\fi
+\ifnum##4>-1\DTMitalianweekdayname{##4}\space\fi\fi%
 \ifnum##3=1\DTMitthefirstoneofthemonth\space\DTMitalianmonthname{##2}%
 \DTMitfulltextmonthyearsep\protect\printnumeroinparole{##1}\space%
 \else\protect\printnumeroinparole{##3}\space\DTMitalianmonthname{##2}%
-\DTMitfulltextmonthyearsep\protect\printnumeroinparole{##1}\fi%
-}%
-}%
+\DTMitfulltextmonthyearsep\protect\printnumeroinparole{##1}\fi}}%
 \DTMsetdatestyle{it-fulltext-twenty-four}
 \DTMnewtimestyle{it-fulltext-twenty-four}{%
 \renewcommand\DTMdisplaytime[3]{%
@@ -240,38 +197,34 @@ or test {\ifnumequal{##1}{24}}
 \fi
 }%
 {%
-\ifnum##2=0
-\ifboolexpr{ test {\ifnumcomp{##1}{=}{1}} or test {\ifnumcomp{##1}{=}{13}}}
-{\DTMoneatnightstring\DTMitoclockstring}%
-{\ifnum##1>12\protect\printnumeroinparole{\numexpr##1-12}\space\DTMitoclockstring\else
-\protect\printnumeroinparole{##1}\space\DTMitoclockstring\fi}
+\ifnum##2=0\protect\printnumeroinparole{##1}\space\DTMitoclockstring%
 \else
 \ifnum##2<31
 \ifnum##2=15
 \ifnum##1=1\DTMquarterpaststringTWO\else
 \ifboolexpr{ test {\ifnumcomp{##1}{=}{12}} or test {\ifnumcomp{##1}{=}{0}} or test {\ifnumcomp{##1}{=}{24}}}
-{\DTMquarterpaststringONE\space}%
-{\DTMquarterpaststringTHREE\space}%
+{\DTMquarterpaststringONE}%
+{\DTMquarterpaststringTHREE}%
 \fi%
 \else
 \ifnum##2=30
 \ifnum##1=1\DTMhalfpaststringTWO%
 \else%
 \ifboolexpr{ test {\ifnumcomp{##1}{=}{0}} or test {\ifnumcomp{##1}{=}{24}} or test {\ifnumcomp{##1}{=}{12}}}
-{\DTMhalfpaststringONE\space}%
-{\DTMhalfpaststringTHREE\space}%
+{\DTMhalfpaststringONE}%
+{\DTMhalfpaststringTHREE}%
 \fi
 \else
-\ifnum##2=1\DTMoneminutestring\space\else\protect\printnumeroinparole{##2}\space
+\ifnum##2=1\DTMoneminutestring\else\protect\printnumeroinparole{##2}\space
 \fi
 \ifnum##2=1
 \ifboolexpr{ test {\ifnumcomp{##1}{=}{12}} or test {\ifnumcomp{##1}{=}{0}} or test {\ifnumcomp{##1}{=}{24}}}
-{\DTMminutepaststringONE\space}%one
-{\ifnum##1=1\DTMminutepaststringTWO\else\DTMminutepaststringTHREE\space\fi}%
+{\DTMminutepaststringONE}%one
+{\ifnum##1=1\DTMminutepaststringTWO\else\DTMminutepaststringTHREE\fi}%
 \else
 \ifboolexpr{ test {\ifnumcomp{##1}{=}{12}} or test {\ifnumcomp{##1}{=}{0}}or test {\ifnumcomp{##1}{=}{24}}}
-{\DTMminutespaststringONE\space}%THREE
-{\ifnum##1=1\DTMminutespaststringTWO\else\DTMminutespaststringTHREE\space\fi}%
+{\DTMminutespaststringONE}%THREE
+{\ifnum##1=1\DTMminutespaststringTWO\else\DTMminutespaststringTHREE\fi}%
 \fi%
 \fi%
 \fi%
@@ -279,8 +232,7 @@ or test {\ifnumequal{##1}{24}}
 \ifnum##1=24\DTMitalianmidnight\else\protect\printnumeroinparole{##1}%
 \fi%
 \else
-\ifnum##1=0
-\DTMitalianmidnight
+\ifnum##1=0\DTMitalianmidnight\space%
 \else
 \ifnum##1=1\DTMoneatnightstring\else\ifnum##1=12\DTMitaliannoon\else\protect\printnumeroinparole{##1}\fi\fi%
 \fi
@@ -290,11 +242,11 @@ or test {\ifnumequal{##1}{24}}
 \ifboolexpr{test {\ifnumcomp{##1}{=}{0}}or test {\ifnumcomp{##1}{=}{24}}}
 {\DTMquartertostringTWO}%
 {\ifboolexpr{ test {\ifnumcomp{##1}{=}{11}} or test {\ifnumcomp{##1}{=}{23}}}
-{\DTMquartertostringONE\space}%
-{\DTMquartertostringTHREE\space}%
+{\DTMquartertostringONE}%
+{\DTMquartertostringTHREE}%
 }%
 \else
-\ifnum##2=59\DTMoneminutestring\space\else\protect\printnumeroinparole{\numexpr60-##2}\space\fi
+\ifnum##2=59\DTMoneminutestring\else\protect\printnumeroinparole{\numexpr60-##2}\space\fi
 \ifnum##2=59
 \ifboolexpr{ test {\ifnumcomp{##1}{=}{0}} or test {\ifnumcomp{##1}{=}{24}}}
 {\DTMminutetostringTWO}%
@@ -332,10 +284,285 @@ or test {\ifnumequal{##1}{24}}
 \fi
 \fi
 \fi
+}}}%
+\DTMnewdatestyle{it-fulltext-second}{%
+\renewcommand*\DTMdisplaydate[4]{%
+\ifDTMshowdow\ifnum##4>-1\DTMitalianweekdayname{##4}\space\fi\fi%
+\ifnum##3=1\DTMitthefirstoneofthemonth\space\DTMitalianmonthname{##2}%
+\DTMitfulltextmonthyearsep\protect\printnumeroinparole{##1}\space%
+\else\protect\printnumeroinparole{##3}\space\DTMitalianmonthname{##2}%
+\DTMitfulltextmonthyearsep\protect\printnumeroinparole{##1}\fi}}%
+\DTMsetdatestyle{it-fulltext-second}
+\DTMnewtimestyle{it-fulltext-second}{%
+\renewcommand\DTMdisplaytime[3]{%
+\ifboolexpr
+{test {\ifnumequal{##2}{0}} and
+(test {\ifnumequal{##1}{0}}
+or test {\ifnumequal{##1}{12}}
+or test {\ifnumequal{##1}{24}} )}%
+{\ifnum##1=12\DTMitaliannoon\space\DTMitsecondsep\space\DTMitminuti{##2}\DTMitsecondi{##3}
+\else\DTMitalianmidnight\space\DTMitminuti{##2}\DTMitsecondsep\DTMitsecondi{##3}\fi}%
+{\ifnum##2=0
+\ifboolexpr{ (test {\ifnumcomp{##1}{=}{1}} or test {\ifnumcomp{##1}{=}{13}}) and test {\ifnumcomp{##3}{=}{0}}}
+{\DTMoneatnightstring\space\DTMitminuti{##2}\DTMitsecondsep\DTMitsecondi{##3}}%
+{\ifnum##1>13\protect\printnumeroinparole{\numexpr##1-12}\space\DTMitsecondsep\DTMitminuti{##2}\DTMitsecondi{##3}\else
+\ifboolexpr{ test {\ifnumcomp{##1}{=}{1}} or test {\ifnumcomp{##1}{=}{13}}}
+{\DTMoneatnightstring\space\DTMitminuti{##2}\DTMitsecondsep\DTMitsecondi{##3}}
+{\printnumeroinparole{##1}\space\DTMitminuti{##2}\DTMitsecondsep\DTMitsecondi{##3}}\fi}%
+\else
+\ifnum##2<31
+\ifnum##2=15
+\ifnum##1=1\DTMquarterpaststringZERO\DTMitsecondi{##3}\space\DTMitpoststringTWO\else
+\ifboolexpr{ test {\ifnumcomp{##1}{=}{12}} or test {\ifnumcomp{##1}{=}{0}} or test {\ifnumcomp{##1}{=}{24}}}
+{\DTMquarterpaststringZERO\DTMitsecondi{##3}\space\DTMitpoststringONE\space}%
+{\ifnum##1=13\DTMquarterpaststringZERO\DTMitsecondi{##3}\space\DTMitpoststringTWO \else\DTMquarterpaststringZERO\DTMitsecondi{##3}\space\DTMitpoststringTHREE\fi}%
+\fi\else%
+\ifnum##2=30
+\ifboolexpr{ test {\ifnumcomp{##1}{=}{1}} or test {\ifnumcomp{##1}{=}{13}}}
+{\DTMhalfstringZERO\DTMitsecondi{##3}\space\DTMitpoststringTWO}%
+{\ifboolexpr{ test {\ifnumcomp{##1}{=}{0}} or test {\ifnumcomp{##1}{=}{24}} or test {\ifnumcomp{##1}{=}{12}}}
+{\DTMhalfstringZERO\DTMitsecondi{##3}\space\DTMitpoststringONE\space}%
+{\DTMhalfstringZERO\DTMitsecondi{##3}\space\DTMitpoststringTHREE}}%
+\else%
+\ifnum##2=1\DTMoneminutestring\else\protect\printnumeroinparole{##2}\space%
+\fi
+\ifnum##2=1
+\ifboolexpr{ test {\ifnumcomp{##1}{=}{12}} or test {\ifnumcomp{##1}{=}{0}} or test {\ifnumcomp{##1}{=}{24}}}%
+{\DTMminutetostringZERO\DTMitsecondi{##3}\space\DTMitpoststringONE\space}%one
+{\ifboolexpr{ test {\ifnumcomp{##1}{=}{13}} or test {\ifnumcomp{##1}{=}{1}}}
+{\DTMminutetostringZERO\DTMitsecondi{##3}\space\DTMitpoststringTWO}%two
+{\DTMminutetostringZERO\DTMitsecondi{##3}\space\DTMitpoststringTHREE}%three
+}%
+\else
+\ifboolexpr{ test {\ifnumcomp{##1}{=}{12}} or test {\ifnumcomp{##1}{=}{0}}or test {\ifnumcomp{##1}{=}{24}} }
+{\DTMminutesstringZERO\DTMitsecondi{##3}\space\DTMitpoststringONE\space}%
+{\ifboolexpr{ test {\ifnumcomp{##1}{=}{13}} or test {\ifnumcomp{##1}{=}{1}}}
+{\DTMminutesstringZERO\DTMitsecondi{##3}\space\DTMitpoststringTWO}%TWO
+{\DTMminutesstringZERO\DTMitsecondi{##3}\space\DTMitpoststringTHREE}}%
+\fi
+\fi%
+\fi%
+\ifnum##1>12
+\ifnum##1=24
+\DTMitalianmidnight
+\else
+\ifnum##1=13\DTMoneatnightstring\else\protect\printnumeroinparole{\numexpr##1-12}\fi%
+\fi%
+\else
+\ifnum##1=0
+\DTMitalianmidnight
+\else
+\ifnum##1=1\DTMoneatnightstring\else\ifnum##1=12\DTMitaliannoon\else\protect\printnumeroinparole{##1}\fi\fi\fi\fi%
+\else
+\ifnum##2=45
+\ifboolexpr{ test {\ifnumcomp{##1}{=}{12}} or test {\ifnumcomp{##1}{=}{0}}or test {\ifnumcomp{##1}{=}{24}}}
+{\DTMquartertostringZERO\DTMitsecondi{##3}\space\DTMitsep}%
+{\ifboolexpr{ test {\ifnumcomp{##1}{=}{11}} or test {\ifnumcomp{##1}{=}{23}}}
+{\DTMquartertostringZERO\DTMitsecondi{##3}\space\DTMitsecondsepTWO\space}%
+{\DTMquartertostringZERO\DTMitsecondi{##3}\space\DTMitsepTWO\space}}%
+\else
+\ifnum##2=59\DTMoneminutestring\else\protect\printnumeroinparole{\numexpr60-##2}\fi
+\ifnum##2=59
+\ifboolexpr{ test {\ifnumcomp{##1}{=}{0}} or test {\ifnumcomp{##1}{=}{12}}or test {\ifnumcomp{##1}{=}{24}}}
+{\DTMminutetostringZERO\DTMitsecondi{##3}\space\DTMitsep}%
+{\ifboolexpr{ test {\ifnumcomp{##1}{=}{11}} or test {\ifnumcomp{##1}{=}{23}}}
+{\DTMminutetostringZERO\DTMitsecondi{##3}\space\DTMitsecondsepTWO\space}%
+{\DTMminutetostringZERO\DTMitsecondi{##3}\space\DTMitsepTWO\space}%
+}%
+\else\space
+\ifboolexpr{ test {\ifnumcomp{##1}{=}{0}} or test {\ifnumcomp{##1}{=}{24}}or test {\ifnumcomp{##1}{=}{12}}}%
+{\DTMminutesstringZERO\DTMitsecondi{##3}\space\DTMitsep}%
+{\ifboolexpr{ test {\ifnumcomp{##1}{=}{11}} or test {\ifnumcomp{##1}{=}{23}}}
+{\DTMminutesstringZERO\DTMitsecondi{##3}\space\DTMitsecondsepTWO\space}%
+{\DTMminutesstringZERO\DTMitsecondi{##3}\space\DTMitsepTWO\space}}%
+\fi\fi%
+\ifnum##1>12
+\ifnum##1=24
+\DTMoneatnightstring%
+\else
+\ifnum##1=23\DTMitalianmidnight\else\protect\printnumeroinparole{\numexpr##1-11}%
+\fi
+\fi
+\else
+\ifnum##1=12\DTMoneatnightstring%\DTMitafternoonstring%
+\else
+\ifnum##1=0\DTMoneatnightstring%\ifnum##2=45\DTMoneatnightstring\else\DTMoneatnightstring\fi%
+\else%
+\ifnum##1=11\DTMitaliannoon\else\ifnum##2=45\protect\printnumeroinparole{\numexpr##1+1}
+\else\protect\printnumeroinparole{\numexpr##1+1}\fi\fi\fi\fi\fi\fi\fi%
+\ifnum##1>11
+\ifnum##1=23
+\ifnum##2<31
+\space\DTMitafternoonstring%
+\fi
+\else
+\ifnum##1=24
+\ifnum##2>30
+\space\DTMitmorningstring%
+\fi
+\else
+\ifnum##1=12\space\else\space\DTMitafternoonstring\fi
+\fi
+\fi
+\else
+\ifnum##1>0
+\ifnum##1=11\else\space\DTMitmorningstring\fi
+\else
+\ifnum##2>30
+\space\DTMitmorningstring
+\fi
+\fi
+\fi
+}}}%
+\DTMnewdatestyle{it-fulltext-twenty-four-second}{%
+\renewcommand*\DTMdisplaydate[4]{%
+\ifnum##4>-1
+\DTMitalianweekdayname{##4}\space%
+\fi
+\ifnum##3=1\DTMitthefirstoneofthemonth\space\DTMitalianmonthname{##2}%
+\DTMitfulltextmonthyearsep\protect\printnumeroinparole{##1}\space%
+\else\protect\printnumeroinparole{##3}\space\DTMitalianmonthname{##2}%
+\DTMitfulltextmonthyearsep\protect\printnumeroinparole{##1}\fi%
+}}%
+\DTMsetdatestyle{it-fulltext-twenty-four-second}
+\DTMnewtimestyle{it-fulltext-twenty-four-second}{%
+\renewcommand\DTMdisplaytime[3]{%
+\ifboolexpr
+{test {\ifnumequal{##2}{0}} and
+(test {\ifnumequal{##1}{0}}
+or test {\ifnumequal{##1}{12}}
+or test {\ifnumequal{##1}{24}}
+)}%
+{%
+\ifnum##1=12\DTMitaliannoon\space\DTMitminuti{##2}\DTMitsecondsep\DTMitsecondi{##3}
+\else\DTMitalianmidnight\space\DTMitminuti{##2}\DTMitsecondsep\DTMitsecondi{##3}%
+\fi}%
+{%
+\ifnum##2=0\ifboolexpr{ (test {\ifnumcomp{##1}{=}{1}}) and test {\ifnumcomp{##3}{=}{0}}}
+{\DTMoneatnightstring\space\DTMitminuti{##2}\DTMitsecondsep\DTMitsecondi{##3}}%
+{\ifnum##1>13\protect\printnumeroinparole{##1}\space\DTMitminuti{##2}\space\DTMitsecondsep \DTMitsecondi{##3}\else
+\ifnum##1=1\protect\DTMoneatnightstring\space\DTMitminuti{##2}\DTMitsecondsep\DTMitsecondi{##3}
+\else\printnumeroinparole{##1}\space\DTMitminuti{##2}\DTMitsecondsep\DTMitsecondi{##3}\fi\fi}%
+\else
+\ifnum##2<31
+\ifnum##2=15
+\ifnum##1=1\DTMquarterpaststringZERO\DTMitsecondi{##3}\space\DTMitpoststringTWO\else
+\ifboolexpr{ test {\ifnumcomp{##1}{=}{12}} or test {\ifnumcomp{##1}{=}{0}} or test {\ifnumcomp{##1}{=}{24}}}
+{\DTMquarterpaststringZERO\DTMitsecondi{##3}\space\DTMitpoststringONE\space}%
+{\ifnum##1=13\DTMquarterpaststringZERO\DTMitsecondi{##3}\space\DTMitpoststringTHREE
+\else\DTMquarterpaststringZERO\DTMitsecondi{##3}\space\DTMitpoststringTHREE\fi}%
+\fi%
+\else%
+\ifnum##2=30
+\ifboolexpr{ test {\ifnumcomp{##1}{=}{1}} or test {\ifnumcomp{##1}{=}{13}}}
+{\DTMhalfstringZERO\DTMitsecondi{##3}\space\DTMitpoststringTHREE}%
+{\ifboolexpr{ test {\ifnumcomp{##1}{=}{0}} or test {\ifnumcomp{##1}{=}{24}} or test {\ifnumcomp{##1}{=}{12}}}
+{\DTMhalfstringZERO\DTMitsecondi{##3}\space\DTMitpoststringONE\space}%
+{\DTMhalfstringZERO\DTMitsecondi{##3}\space\DTMitpoststringTHREE}%
+}%
+\else%
+\ifnum##2=1\DTMoneminutestring\else\protect\printnumeroinparole{##2}\space%
+\fi
+\ifnum##2=1
+\ifboolexpr{ test {\ifnumcomp{##1}{=}{12}} or test {\ifnumcomp{##1}{=}{0}} or test {\ifnumcomp{##1}{=}{24}}}
+{\DTMminutetostringZERO\DTMitsecondi{##3}\space\DTMitpoststringONE\space}%one
+{\ifboolexpr{ test {\ifnumcomp{##1}{=}{13}} or test {\ifnumcomp{##1}{=}{1}}}
+{\DTMminutetostringZERO\DTMitsecondi{##3}\space\DTMitpoststringTHREE}%two
+{\DTMminutetostringZERO\DTMitsecondi{##3}\space\DTMitpoststringTHREE}%three
+}%
+\else
+\ifboolexpr{ test {\ifnumcomp{##1}{=}{12}} or test {\ifnumcomp{##1}{=}{0}}or test {\ifnumcomp{##1}{=}{24}} }
+{\DTMminutesstringZERO\DTMitsecondi{##3}\space\DTMitpoststringONE\space}%
+{\ifboolexpr{ test {\ifnumcomp{##1}{=}{13}}}
+{\DTMminutesstringZERO\DTMitsecondi{##3}\space\DTMitpoststringTHREE}%TWO
+{\DTMminutesstringZERO\DTMitsecondi{##3}\space\DTMitpoststringTHREE}}%
+\fi%
+\fi%
+\fi%
+\ifnum##1>12
+\ifnum##1=24
+\DTMitalianmidnight
+\else
+\protect\printnumeroinparole{##1}%\fi%
+\fi%
+\else
+\ifnum##1=0
+\DTMitalianmidnight
+\else
+\ifnum##1=1\DTMoneatnightstring\else\ifnum##1=12\DTMitaliannoon
+\else\protect\printnumeroinparole{##1}\fi\fi%
+\fi
+\fi
+\else
+\ifnum##2=45
+\ifboolexpr{ test {\ifnumcomp{##1}{=}{0}}or test {\ifnumcomp{##1}{=}{24}}}
+{\DTMquartertostringZERO\DTMitsecondi{##3}\space\DTMitsep}%
+{\ifboolexpr{ test {\ifnumcomp{##1}{=}{11}} or test {\ifnumcomp{##1}{=}{23}}}
+{\DTMquartertostringZERO\DTMitsecondi{##3}\space\DTMitsecondsepTWO\space}%
+{\DTMquartertostringZERO\DTMitsecondi{##3}\space\DTMitsepTWO\space}%
+}%
+\else
+\ifnum##2=59\DTMoneminutestring\else\protect\printnumeroinparole{\numexpr60-##2}\fi
+\ifnum##2=59
+\ifboolexpr{ test {\ifnumcomp{##1}{=}{0}} or test {\ifnumcomp{##1}{=}{24}}}
+{\DTMminutetostringZERO\DTMitsecondi{##3}\space\DTMitsep}%
+{\ifboolexpr{ test {\ifnumcomp{##1}{=}{11}} or test {\ifnumcomp{##1}{=}{23}}}
+{\DTMminutetostringZERO\DTMitsecondi{##3}\space\DTMitsecondsepTWO\space}%
+{\DTMminutetostringZERO\DTMitsecondi{##3}\space\DTMitsepTWO\space}%
+}%
+\else\space
+\ifboolexpr{ test {\ifnumcomp{##1}{=}{0}} or test {\ifnumcomp{##1}{=}{24}}}%
+{\DTMminutesstringZERO\DTMitsecondi{##3}\space\DTMitsep}%
+{\ifboolexpr{ test {\ifnumcomp{##1}{=}{11}} or test {\ifnumcomp{##1}{=}{23}}}
+{\DTMminutesstringZERO\DTMitsecondi{##3}\space\DTMitsecondsepTWO\space}%
+{\DTMminutesstringZERO\DTMitsecondi{##3}\space\DTMitsepTWO\space}%
+}%
+\fi
+\fi
+\ifnum##1>12
+\ifnum##1=24
+\DTMoneatnightstring%
+\else
+\ifnum##1=23\DTMitalianmidnight\else\protect\printnumeroinparole{##1}%
+\fi
+\fi
+\else
+\ifnum##1=0\ifnum##2=45\DTMoneatnightstring\else\DTMoneatnightstring\fi%
+\else%
+\ifnum##1=11\DTMitaliannoon\else
+\ifnum##2=45\protect\printnumeroinparole{\numexpr##1+1}
+\else\protect\printnumeroinparole{\numexpr##1+1}\fi\fi
+\fi%
+\fi
+\fi
+\fi
+}%
 }%
 }%
+\DTMnewdatestyle{it-fulltext-semplice}{%
+\renewcommand*\DTMdisplaydate[4]{%
+\ifnum##4>-1\DTMitalianweekdayname{##4}\space\fi%
+\ifnum##3=1\DTMitthefirstoneofthemonth\space\DTMitalianmonthname{##2}%
+\DTMitfulltextmonthyearsep\protect\printnumeroinparole{##1}\space%
+\else\protect\printnumeroinparole{##3}\space\DTMitalianmonthname{##2}%
+\DTMitfulltextmonthyearsep\protect\printnumeroinparole{##1}\fi%
+}%
+}%
+\DTMsetdatestyle{it-fulltext-semplice}
+\DTMnewtimestyle{it-fulltext-semplice}{%
+\renewcommand\DTMdisplaytime[3]{%
+\ifboolexpr
+{test {\ifnumequal{##1}{0}}
+or test {\ifnumequal{##1}{12}}
+or test {\ifnumequal{##1}{24}}}%
+{\ifboolexpr
+{test {\ifnumequal{##1}{0}}%
+or test {\ifnumequal{##1}{24}}}%
+{\DTMitalianmidnight\space\DTMitminuti{##2}\space\DTMitsecondsep\DTMitsecondi{##3}}%
+{\DTMitaliannoon\space\DTMitminuti{##2}\space\DTMitsecondsep\DTMitsecondi{##3}}}%
+{ore\space\DTMitore{##1}\space\DTMitminuti{##2}\space\DTMitsecondsep\DTMitsecondi{##3}}%
+}%
 }%
-
 \endinput
 %%
 %% End of file `datetime2-it-fulltext.sty'.
-- 
cgit v1.2.3

