[OS X TeX] time

Claus Gerhardt gerhardt at math.uni-heidelberg.de
Wed Aug 5 18:39:46 CEST 2009


I noticed that the Latex Companion's proposal didn't give the time in  
the form 20:04 (20:14 could be easily arranged). Hence, the following  
modification

RequirePackage{calc}
RequirePackage{ifthen}

\newcounter{hours}\newcounter{minutes}
\newcommand{\printtime}{%
\setcounter{hours}{\time/60}%
\setcounter{minutes}{\time-\value{hours}*60}%
\ifthenelse{\value{minutes}<9}{\thehours :0\theminutes}{\thehours: 
\theminutes}}


This is the \printtime.

Claus


On Aug 5, 2009, at 2:23, Claus Gerhardt wrote:

> Trying the index of the Latex Companion (first edition) will lead to  
> p. 469.
>
> Claus
>
> On Aug 4, 2009, at 22:51, George Gratzer wrote:
>
>> Is there a standard formula that converts \time to a normal form,  
>> like hours, minutes?
>>
>> GG
>> ----------- Please Consult the Following Before Posting -----------
>> TeX FAQ: http://www.tex.ac.uk/faq
>> List Reminders and Etiquette: http://email.esm.psu.edu/mac-tex/
>> List Archive: http://tug.org/pipermail/macostex-archives/
>> TeX on Mac OS X Website: http://mactex-wiki.tug.org/
>> List Info: http://email.esm.psu.edu/mailman/listinfo/macosx-tex
>>
>
> ----------- Please Consult the Following Before Posting -----------
> TeX FAQ: http://www.tex.ac.uk/faq
> List Reminders and Etiquette: http://email.esm.psu.edu/mac-tex/
> List Archive: http://tug.org/pipermail/macostex-archives/
> TeX on Mac OS X Website: http://mactex-wiki.tug.org/
> List Info: http://email.esm.psu.edu/mailman/listinfo/macosx-tex
>




More information about the macostex-archives mailing list