<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-tab-span" style="white-space:pre"> </span>i get the following error with Alain's code:<div><br></div><div><blockquote type="cite" class=""><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; ">! Missing number, treated as zero.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; "><to be read again> </div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; "> *</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; ">l.63 \printtime</div><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco; min-height: 14.0px"> <br class="webkit-block-placeholder"></p><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; ">? </div><div><font class="Apple-style-span" face="Monaco"><br></font></div></blockquote><div><br></div><span class="Apple-tab-span" style="white-space:pre"> </span>Any ideas as to what could cause this? When i include \thehours and \theminutes by themselves, they both come out as "0"/</div><div><br></div><div><div>Best,</div><div>-Nathan </div></div><div><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div><font class="Apple-style-span" face="Courier">----------</font></div><div><font class="Apple-style-span" face="Courier">Nathan A. Paxton</font></div><div><font class="Apple-style-span" face="Courier">Ph.D. Candidate</font></div><div><span class="Apple-style-span" style="font-family: Courier; ">Dept. of Government, Harvard University</span></div><div><font class="Apple-style-span" face="Courier"><br class="webkit-block-placeholder"></font></div><div><font class="Apple-style-span" face="Courier">Resident Tutor</font></div><div><font class="Apple-style-span" face="Courier">John Winthrop House, Harvard University</font></div><div><font class="Apple-style-span" face="Courier"><br class="webkit-block-placeholder"></font></div><div><font class="Apple-style-span" face="Courier">napaxton AT fas DOT harvard DOT edu</font></div><div><font class="Apple-style-span" face="Courier"><a href="http://www.fas.harvard.edu/~napaxton">http://www.fas.harvard.edu/~napaxton</a></font></div><div><font class="Apple-style-span" face="Courier">========================================================</font></div><div><font class="Apple-style-span" face="Courier"><span class="Apple-style-span" style="font-family: Helvetica; "><div><div><div><div><div><font class="Apple-style-span" face="Courier">If every professor who backed a lunatic politician were to be sacked, half the interesting minds in academia would be lost.</font></div><div><span class="Apple-tab-span" style="white-space: pre; "><font class="Apple-style-span" face="Courier"> </font></span><font class="Apple-style-span" face="Courier">- The Economist, 5 Jan 2002</font></div><div><font class="Apple-style-span" face="Courier"><br></font></div></div></div></div></div><font class="Apple-style-span" face="Courier">A morning without coffee is like something without something else.</font></span></font></div><div><font class="Apple-style-span" face="Courier">========================================================</font></div></div></div></span></div></span></div></span></div></span></div></span></div></span></div></span> </div><br><div><div>On 21 Mar 2009, at 10:40 AM, Alain Schremmer wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><br>On Mar 21, 2009, at 6:15 AM, Peter Dyballa wrote:<br><br><blockquote type="cite">This records the time when the source file was compiled. The other code reflects the time when the source file was saved. This does make a difference: some time vs. a versioning time stamp.<br></blockquote><br>Since I am versioning all by myself …<br><br><blockquote type="cite">BTW: the compile time is usually recorded in the PDF output, so it's not that useful to put it also in the text body.<br></blockquote><br><br><blockquote type="cite">You can see it on the command line with pdfinfo (from the xpdf software), you can see it in Finder's inspector (quite the same with ⌘-I),<br></blockquote><br>True but when you need an exam and you find a few copies lying on your desk, seemingly just what you need, you do want to check the compile date.<br><br><blockquote type="cite">and you can also check it in Adobe or Acrobat Readers.<br></blockquote><br>No, because all Adobe applications are banned from my computer. (Too invasive.)<br><br><blockquote type="cite">Although recently re-compiled the date of the source file's last change is recorded. You can have both times by commenting, for example, the line with ``pdfcreationdate={\@SourceFileDate},%´´ in the \hypersetup:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><span class="Apple-tab-span" style="white-space:pre"> </span>Title: An UTF-8 LaTeX Example<br></blockquote><blockquote type="cite"><span class="Apple-tab-span" style="white-space:pre"> </span>Subject: ISO Latin-1 and ISO Latin-9 characters<br></blockquote><blockquote type="cite"><span class="Apple-tab-span" style="white-space:pre"> </span>Keywords: LaTeX, UTF8, ISO, Latin-1, Latin-2, Latin-9, ISO 8859, LICR<br></blockquote><blockquote type="cite"><span class="Apple-tab-span" style="white-space:pre"> </span>Author: Peter Dyballa<br></blockquote><blockquote type="cite"><span class="Apple-tab-span" style="white-space:pre"> </span>Creator: LaTeX with hyperref package<br></blockquote><blockquote type="cite"><span class="Apple-tab-span" style="white-space:pre"> </span>Producer: pdfTeX-1.40.9<br></blockquote><blockquote type="cite"><span class="Apple-tab-span" style="white-space:pre"> </span>CreationDate: Sat Mar 21 11:11:22 2009<br></blockquote><blockquote type="cite"><span class="Apple-tab-span" style="white-space:pre"> </span>ModDate: Sat Mar 21 11:11:11 2009<br></blockquote><blockquote type="cite"><span class="Apple-tab-span" style="white-space:pre"> </span>Tagged: no<br></blockquote><blockquote type="cite"><span class="Apple-tab-span" style="white-space:pre"> </span>Pages: 4<br></blockquote><blockquote type="cite"><span class="Apple-tab-span" style="white-space:pre"> </span>Encrypted: no<br></blockquote><blockquote type="cite"><span class="Apple-tab-span" style="white-space:pre"> </span>Page size: 841.89 x 595.276 pts (A4)<br></blockquote><blockquote type="cite"><span class="Apple-tab-span" style="white-space:pre"> </span>File size: 141162 bytes<br></blockquote><blockquote type="cite"><span class="Apple-tab-span" style="white-space:pre"> </span>Optimized: no<br></blockquote><blockquote type="cite"><span class="Apple-tab-span" style="white-space:pre"> </span>PDF version: 1.4<br></blockquote><br>However, yes, it would be good to have both dates. Because I tend to over-compile because I tend to lose the pdf.<br><br><blockquote type="cite">To implement it, in the preamble:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">\documentclass[]{<somecls>}<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> \usepackage{hyperref}<span class="Apple-tab-span" style="white-space:pre"> </span><span class="Apple-tab-span" style="white-space:pre"> </span><span class="Apple-tab-span" style="white-space:pre"> </span><span class="Apple-tab-span" style="white-space:pre"> </span><span class="Apple-tab-span" style="white-space:pre"> </span><span class="Apple-tab-span" style="white-space:pre"> </span>% necessary<br></blockquote><blockquote type="cite"> \makeatletter<br></blockquote><blockquote type="cite"> \@ifundefined{pdffilemoddate}{%<br></blockquote><blockquote type="cite"> \PackageError{sourcetime}{%<br></blockquote><blockquote type="cite"> pdfTeX >= 1.30.0 required%<br></blockquote><blockquote type="cite"> }%<br></blockquote><blockquote type="cite"> \let\pdffilemoddate\@gobble<br></blockquote><blockquote type="cite"> }{}%<br></blockquote><blockquote type="cite"> \newcommand*{\SourceFile}[1]{%<br></blockquote><blockquote type="cite"> \edef\@SourceFileDate{\pdffilemoddate{#1}}%<br></blockquote><blockquote type="cite"> % empty in case of errors, but don't harm in next comparison<br></blockquote><blockquote type="cite"> \ifnum\pdfstrcmp{\@SourceFileDate}{\@CurrentSourceFileDate}>0 %<br></blockquote><blockquote type="cite"> \let\@CurrentSourceFileDate\@SourceFileDate<br></blockquote><blockquote type="cite"> \expandafter\@ParseDate\@SourceFileDate\@nil<br></blockquote><blockquote type="cite"> \hypersetup{%<br></blockquote><blockquote type="cite"> pdfcreationdate={\@SourceFileDate},%<br></blockquote><blockquote type="cite"> pdfmoddate={\@SourceFileDate}%<br></blockquote><blockquote type="cite"> }%<br></blockquote><blockquote type="cite"> \PackageInfo{sourcetime}{%<br></blockquote><blockquote type="cite"> Using file `#1'%<br></blockquote><blockquote type="cite"> }%<br></blockquote><blockquote type="cite"> \fi<br></blockquote><blockquote type="cite"> }<br></blockquote><blockquote type="cite"> \newcommand*{\@CurrentSourceFileDate}{}<span class="Apple-tab-span" style="white-space:pre"> </span><span class="Apple-tab-span" style="white-space:pre"> </span><span class="Apple-tab-span" style="white-space:pre"> </span>% produces date form for PDF info<br></blockquote><blockquote type="cite"> \expandafter\def\expandafter\@ParseDate\detokenize{D:}#1#2#3#4#5#6#7#8{%<br></blockquote><blockquote type="cite"> \year=#1#2#3#4\relax<br></blockquote><blockquote type="cite"> \month=#5#6\relax<br></blockquote><blockquote type="cite"> \day=#7#8\relax<br></blockquote><blockquote type="cite"> \@ParseTime<br></blockquote><blockquote type="cite"> }<br></blockquote><blockquote type="cite"> \def\@ParseTime #1#2#3#4#5\@nil{%<br></blockquote><blockquote type="cite"> \time=\numexpr #1#2 * 60 + #3#4\relax<br></blockquote><blockquote type="cite"> }<br></blockquote><blockquote type="cite"> \makeatother<br></blockquote><blockquote type="cite"> \SourceFile{\jobname.tex}<span class="Apple-tab-span" style="white-space:pre"> </span><span class="Apple-tab-span" style="white-space:pre"> </span><span class="Apple-tab-span" style="white-space:pre"> </span><span class="Apple-tab-span" style="white-space:pre"> </span><span class="Apple-tab-span" style="white-space:pre"> </span><span class="Apple-tab-span" style="white-space:pre"> </span>% execution<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">\begin{document}<br></blockquote><blockquote type="cite">This is a text body!<br></blockquote><blockquote type="cite">\end{document}<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">What are the errors you get?<br></blockquote><br>That's the trouble: I am not getting any error. I am not getting anything … other than<br><br>This is a text body!<br><br>I even tried to move/copy<br><br> \SourceFile{\jobname.tex}<br><br>to within the document. No error, no stamp that I can see.<br><br>So I must be missing something big!<br><br><br>Here is the console:<br><br>(/usr/local/gwTeX/texmf.texlive/tex/latex/base/bk11.clo))<br>(/usr/local/gwTeX/texmf.texlive/tex/latex/hyperref/hyperref.sty<br>(/usr/local/gwTeX/texmf.texlive/tex/latex/graphics/keyval.sty)<br>(/usr/local/gwTeX/texmf.texlive/tex/latex/hyperref/pd1enc.def)<br>(/usr/local/gwTeX/texmf.texlive/tex/latex/config/hyperref.cfg)<br>(/Users/gpadnom/Library/texmf/tex/latex/kvoptions.sty)<br>Implicit mode ON; LaTeX internals redefined<br>(/usr/local/gwTeX/texmf.texlive/tex/latex/ltxmisc/url.sty))<br>*hyperref using default driver hpdftex*<br>(/usr/local/gwTeX/texmf.texlive/tex/latex/hyperref/hpdftex.def)<br>(/usr/local/gwTeX/texmf.texlive/tex/latex/tools/calc.sty)<br>No file DyballaCompile-Save.aux.<br>(/Users/gpadnom/Library/texmf/tex/latex/nameref.sty) [1{/usr/local/gwTeX/texmf.<br>local/fonts/map/pdftex/updmap/pdftex.map}] (./DyballaCompile-Save.aux) )</usr/l<br>ocal/gwTeX/texmf.texlive/fonts/type1/bluesky/cm/cmr10.pfb><br>Output written on DyballaCompile-Save.pdf (1 page, 11179 bytes).<br>Transcript written on DyballaCompile-Save.log.<br><br>(Just in case: I am still using gwTeX on 10.4.11)<br><br>Hopeful regards<br>--schremmer<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>----------- Please Consult the Following Before Posting -----------<br>TeX FAQ: <a href="http://www.tex.ac.uk/faq">http://www.tex.ac.uk/faq</a><br>List Reminders and Etiquette: <a href="http://email.esm.psu.edu/mac-tex/">http://email.esm.psu.edu/mac-tex/</a><br>List Archive: <a href="http://tug.org/pipermail/macostex-archives/">http://tug.org/pipermail/macostex-archives/</a><br>TeX on Mac OS X Website: <a href="http://mactex-wiki.tug.org/">http://mactex-wiki.tug.org/</a><br>List Info: <a href="http://email.esm.psu.edu/mailman/listinfo/macosx-tex">http://email.esm.psu.edu/mailman/listinfo/macosx-tex</a><br><br></div></blockquote></div><br></div></body></html>