<br><br><div class="gmail_quote">On Wed, Jun 2, 2010 at 1:09 PM, Tihomir Culjaga <span dir="ltr"><<a href="mailto:tculjaga@gmail.com">tculjaga@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im"><br><br><div class="gmail_quote">On Tue, Jun 1, 2010 at 4:50 PM, David Ponzone <span dir="ltr"><<a href="mailto:david.ponzone@gmail.com" target="_blank">david.ponzone@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div style="word-wrap: break-word;">Tihomir,<div><br></div><div>you can do that yourself with expr.</div><div><br></div><div>h = expr floor(credit_time/3600)</div><div>m = expr floor(mod(credit_time,3600)/60)</div><div>s = expr mod(credit_time,60)</div>
<div><br></div><div>Just convert that to the right $expr{} syntax.</div><div><br></div><br></div></blockquote></div><br></div>cool, it works:<br><br> <action application="log" data="INFO TRANSFORM MINUTES=>>>> TIME=${expr(floor(405/3600))}:${expr(floor(mod(405,3600)/60))}:${expr(mod(405,60))}"/><br>
<br>Thanks!<br>
</blockquote></div><br><br><br>and finally its like this:<br><br> <macro name="timeleft_sec"><br> <input pattern="(\d+)"><br> <match><br> <action function="say" data="${expr(floor($1/3600))}:${expr(floor(mod($1,3600)/60))}:${expr(mod($1,60))}" <br>
method="pronounced" <br> type="time_measurement"/><br> </match><br> </input><br> </macro><br><br><br>