<div dir="ltr">Time stamps are noted as being in UTC, so presumably if_tzone is just a display hint?<div><br></div><div>UTC is arguably not the ideal time base for packet traces or statistics, as there are (leap) seconds occasionally with no valid UTC value. Could there be a time base option (interface or section)  to specify e.g. TAI instead? This time base is strictly monotonic and so does not suffer from the vagaries of the earth's rotation. Conversion of TAI to UTC can be done with the aid of lookup tables of leap seconds (although leap seconds themselves still become ambiguous).</div><div><br></div><div>Stephen</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 25, 2015 at 11:59 PM, Hadriel Kaplan <span dir="ltr"><<a href="mailto:the.real.hadriel@gmail.com" target="_blank">the.real.hadriel@gmail.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 Mon, Aug 24, 2015 at 12:57 PM, Guy Harris <<a href="mailto:guy@alum.mit.edu">guy@alum.mit.edu</a>> wrote:<br>
><br>
> On Aug 24, 2015, at 7:38 AM, Hadriel Kaplan <<a href="mailto:the.real.hadriel@gmail.com">the.real.hadriel@gmail.com</a>> wrote:<br>
><br>
>> Currently the IDB if_tzone option is declared but not specified.<br>
>><br>
>> Proposal: make it a signed int32 for number of seconds West of UTC.<br>
><br>
> ...at the time that the IDB is inserted into the file, or when daylight savings time/summer time is not in effect?<br>
><br>
> (For example, it's currently 16:57 UTC and 09:57 on the US West Coast at the time I'm typing this, for an offset of 7 hours, but if it were a few months later, it would be an offset of 8 hours.)<br>
<br>
</span>The number of seconds in local Standard Time, West of UTC, regardless<br>
of current DST being in effect or not. (i.e., keep DST-handling in the<br>
presentation layer, not in the file contents)<br>
<br>
So for you it would be +8 hours (=28800 seconds) all the time.<br>
<br>
Or another direction would be to get rid of this 'if_tzone' option altogether.<br>
<span class="HOEnZb"><font color="#888888"><br>
-hadriel<br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
pcap-ng-format mailing list<br>
<a href="mailto:pcap-ng-format@winpcap.org">pcap-ng-format@winpcap.org</a><br>
<a href="https://www.winpcap.org/mailman/listinfo/pcap-ng-format" rel="noreferrer" target="_blank">https://www.winpcap.org/mailman/listinfo/pcap-ng-format</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><span><b><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#404040">Stephen Donnelly</span></b><br><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#404040">
Engineering Manager CTO Group<br>Endace - Avago<br><br></span></span></div></div>
</div>