[Freeswitch-users] time format
Tihomir Culjaga
tculjaga at gmail.com
Wed Jun 2 04:09:56 PDT 2010
On Tue, Jun 1, 2010 at 4:50 PM, David Ponzone <david.ponzone at gmail.com>wrote:
> Tihomir,
>
> you can do that yourself with expr.
>
> h = expr floor(credit_time/3600)
> m = expr floor(mod(credit_time,3600)/60)
> s = expr mod(credit_time,60)
>
> Just convert that to the right $expr{} syntax.
>
>
>
cool, it works:
<action application="log" data="INFO TRANSFORM MINUTES=>>>>
TIME=${expr(floor(405/3600))}:${expr(floor(mod(405,3600)/60))}:${expr(mod(405,60))}"/>
Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100602/b400a67e/attachment.html
More information about the FreeSWITCH-users
mailing list