<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Hello,<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 28.04.17 04:00, Diego Nadares wrote:<br>
    </div>
    <blockquote
cite="mid:CAP-r+er5=Zupr-kjSov5CfhVmD1e2KGPr3qW-LQmD89_PXB7OA@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi Guys,
        <div><br>
        </div>
        <div>Is to convert or obtain </div>
        <div><br>
          <span style="color:rgb(51,51,51);font-size:14px">$TV(s) -
            seconds (cached at first call per sip message)</span><br>
          <div class="gmail-li"
            style="font-size:14px;margin:0px;padding:0px;color:rgb(51,51,51)">$TV(u)
            - microseconds (cached at first call per sip message)</div>
          <div class="gmail-li"
            style="font-size:14px;margin:0px;padding:0px;color:rgb(51,51,51)"><span
              style="color:rgb(34,34,34);font-size:small"><br>
            </span></div>
          <div class="gmail-li"
            style="font-size:14px;margin:0px;padding:0px;color:rgb(51,51,51)"><span
              style="color:rgb(34,34,34);font-size:small">to
              datetime.microsecs?</span></div>
        </div>
        <div><br>
        </div>
        <div>I'm trying to save 180/183 datetime (cached) like
          YYYY-MM-DD HH:mm:SS.microsecs</div>
        <div><br>
        </div>
        <div>
          <div>$dlg_var(ring_time) = $timef(%Y-%m-%d %H:%M:%S);
            <--this is current time, not cached</div>
          <div>$dlg_var(ring_time_micro) = $TV(u); <-- this is cached
            us</div>
        </div>
        <div><br>
        </div>
      </div>
    </blockquote>
    if you mix cached with no cached values, then you get them from
    different points in time and they are not accurate.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - May 22-24 (USA) - <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
Kamailio World Conference - May 8-10, 2017 - <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
  </body>
</html>