TeX/time
Appearance
< TeX
Synopsis
[edit | edit source]\time=<integer> \time<integer>
Description
[edit | edit source]\time is a parameter that TeX initiates to the number of minutes that have completed in the current day. TeX sets this parameter once upon start-up. If, for example, TeX starts at 10:32:45am, then \time would be set to 60*10+32=632, dropping the 45 seconds. This parameter may be changed to <integer> with either of the two equivalent forms above.
Examples
[edit | edit source]Recall that the command \number will typeset the decimal representation of whatever follows it, and TeX started at, say, 10:32:04am then
\number\time
will typeset 632, if the \time parameter has not be redefined since TeX started.
\time=-45 \number\time
will typeset -45.