< TeX
Synopsis
\time=<integer> \time<integer>
Description
\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
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.
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.