<br><br><div class="gmail_quote">On Wed, Jun 2, 2010 at 1:09 PM, Tihomir Culjaga <span dir="ltr">&lt;<a href="mailto:tculjaga@gmail.com">tculjaga@gmail.com</a>&gt;</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">&lt;<a href="mailto:david.ponzone@gmail.com" target="_blank">david.ponzone@gmail.com</a>&gt;</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>      &lt;action application=&quot;log&quot; data=&quot;INFO  TRANSFORM MINUTES=&gt;&gt;&gt;&gt; TIME=${expr(floor(405/3600))}:${expr(floor(mod(405,3600)/60))}:${expr(mod(405,60))}&quot;/&gt;<br>

<br>Thanks!<br>
</blockquote></div><br><br><br>and finally its like this:<br><br>       &lt;macro name=&quot;timeleft_sec&quot;&gt;<br>         &lt;input pattern=&quot;(\d+)&quot;&gt;<br>           &lt;match&gt;<br>             &lt;action function=&quot;say&quot; data=&quot;${expr(floor($1/3600))}:${expr(floor(mod($1,3600)/60))}:${expr(mod($1,60))}&quot; <br>
                     method=&quot;pronounced&quot; <br>                     type=&quot;time_measurement&quot;/&gt;<br>           &lt;/match&gt;<br>         &lt;/input&gt;<br>       &lt;/macro&gt;<br><br><br>