<div dir="ltr">Thanks Valentin. That works.<div><div><br></div><div>Can you explain <br><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Apr 3, 2016 at 6:10 PM, Валентин Бартенев <span dir="ltr"><<a href="mailto:vbart@nginx.com" target="_blank">vbart@nginx.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Sunday 03 April 2016 11:31:08 Anoop Alias wrote:<br>
> I need to log the seconds since epoch (without the millisecond resolution)<br>
> in the access_log file<br>
><br>
> is there is a way to convert the $msec to seconds or drop the exponential<br>
> part of the time . Probably using the map function?.<br>
><br>
<br>
</span>It's easy with the map directive:<br>
<br>
    map $msec $sec {<br>
        ~^(?P<_sec>.+)\. $_sec;<br>
    }<br>
<br>
<br>
  wbr, Valentin V. Bartenev<br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" rel="noreferrer" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><b>Anoop P Alias</b> <div><br></div></div></div></div>
</div></div></div></div>