名前: トニイ@FTEX 日時: 2003-04-03 13:02:05 IPアドレス: 219.99.202.*
>>17950 既に回答出ていますが・・・ \documentclass[a4j,12pt]{jsarticle} \usepackage{calc} \newcounter{hours}\newcounter{minutes} \makeatletter% add \newcommand{\printtime}{% \setcounter{hours}{\time/60}% \setcounter{minutes}{\time-\value{hours}*60}% \ifnum\c@hours<10 0\fi% add \thehours h \ifnum\c@minutes<10 0\fi% add \theminutes min} \makeatother% add \begin{document} \noindent The time is \printtime.\\ \end{document} \documentclass[a4j,12pt]{jsarticle} \newcommand{\printtime}{% \ifnum\hour<10 0\fi% \number\hour h % \ifnum\minute<10 0\fi% \number\minute min} \begin{document} \noindent The time is \printtime.\\ \end{document}
この書き込みへの返事: