I want to calculate a time being printed using pgfmath. I have some code similiar to this:
\pgfmathparse{int(mod(\x,60))}\pgfmathresult O'clock
but if the result is between 0 and 9 my time being displayed is something like 11:2 instead of 11:02. Can I force fixed zeros at the front? I only found something to get them at the end.

\ifdimto test the result.\ifdim\pgfmathresult<10 0\pgfmathresult\else\pgfmathresult\fi~O'clock– Marco Daniel Oct 10 '12 at 14:1911:\pgfmathparse{int(mod(\x,60))/100}\pgfmathprintnumber[skip 0.=true, dec sep={}, fixed]{\pgfmathresult}– Jake Oct 10 '12 at 14:23