%%
%% now.tex
%%
%% Provides a macro \now for current time of the day.  Based
%% in part on time.sty by Mike Piff and a comp.text.tex post
%% by Harald Hanche-Olsen.  Simply \input in your (La)TeX
%% file.
%%
%% author:  Pouya Dehghani Tafti
%%          Biomedical Imaging Group, EPFL, Lausanne
%%          p dot d dot tafti at ieee dot org
%%
%% date:    25.09.06 (dd.mm.yy)
%%

\catcode`@=11

\newcount\hour
\newcount\minute

\hour=\time
\divide\hour by 60
\minute=\hour
\multiply\minute by -60
\advance\minute by \time

\def\@2dig#1{\ifnum#1<10 0\fi\the#1}
\def\now{\@2dig\hour :\@2dig\minute}

\catcode`@=12
