\hour
と
\minute
が使えたのだけど,
いまのやつでは使えないので
……
/usr/share/texmf/ptex/platex/base/jbook.cls
などからコードをかっぱらってきたりして,
下のごとく見苦しく実装.
\hour\time \divide\hour by 60\relax
\@tempcnta\hour \multiply\@tempcnta 60\relax
\minute\time \advance\minute-\@tempcnta
\newcommand{\zeropadding}[1]{\ifnum #1<10 0#1 \else #1 \fi}
\newcommand{
\updatetime}{\the\year--\zeropadding{\the\month}--\zeropadding{\the\day}
\ \
\zeropadding{\the\hour}:\zeropadding{\the\minute}
}