\xxivtime (for 24-hour time), \ampmtime (for 12-hour time) and
\oclock (for time-as-words, albeit a slightly eccentric set of
words).
The scrtime package (part of the compendious
KOMA-Script bundle) takes a package option (12h or
24h) to specify how times are to be printed. The command
\thistime then prints the time appropriately (though there’s no
am or pm in 12h mode). The \thistime
command also takes an optional argument, the character to separate the
hours and minutes: the default is of course :.
Go to previous question, or next question
Go to FAQ home.
URL for this question: http://www.tex.ac.uk/cgi-bin/texfaq2html?label=time
Comments, suggestions, or error reports? - see “how to improve the FAQ”.
This is FAQ version 3.27, released on 2013-06-07.