<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><div dir="ltr" class="gmail_attr">On Thu, 14 Mar 2019 at 12:26, Paul Eggert <<a href="mailto:eggert@cs.ucla.edu">eggert@cs.ucla.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 3/11/19 8:35 PM, Tim Parenti wrote:<br>> So if my truncation range starts with POSIX timestamp N, I would<br>> expect time type zero to correctly and accurately represent timestamp<br>> N−1 (though, of course, not necessarily N−2 or any earlier).<br><br>Thanks for catching that bug. I installed the attached patch.</blockquote></div><div><br></div><div>Thanks, though I should note I have a quibble with a small assertion in your patch notes:</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">It’s nicer (though not required by RFC 8536) that when the start of a TZif file is truncated, the default time type is that of timestamps just before the first transition.</blockquote><div><br></div><div>Section 5.1 of RFC 8536 requires that "[a]ll represented information that falls inside the truncation range MUST be the same as that represented by a corresponding untruncated TZif file."  By not making the default time type that of timestamps just before the range starts at time N, this creates a false and inaccurate transition at time N.  By ensuring that timestamp N−1 is accurately represented, either a correct transition is inserted at time N (if a transition does indeed normally exist at time N), or a fictitious-though-accurate no-op transition is inserted at time N.  Either way, the data representing the transition at time N would then be correct.</div><div><br></div><div>Therefore, it is certainly my understanding that such behavior is indeed required by RFC 8536.  And yes, that is very much because it's nicer.</div><br clear="all"><div><div dir="ltr" class="gmail_signature">--<br>Tim Parenti</div></div></div></div></div></div></div>