<div dir="auto">I love this discussion. I&#39;ve been involved with computer time since the early 1970s. While at burger King I wrote a standardized set of time utilities in cobol. Later at Digital I was responsible for the utmp libraries, and the standard test failed. The issue was that the standard test used a future time beyond 2035. Back then tine_t was a signed 32 bit integer <br><br><div data-smartmail="gmail_signature">--<br>Jerry Feldman &lt;<a href="mailto:gaf.linux@gmail.com">gaf.linux@gmail.com</a>&gt;<br>Boston Linux and Unix <a href="http://www.blu.org">http://www.blu.org</a><br>PGP key id: 6F6BB6E7<br>PGP Key fingerprint: 0EDC 2FF5 53A6 8EED 84D1  3050 5715 B88D 6F6<br>B B6E7</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Mar 8, 2021, 2:00 PM Joshua Judson Rosen &lt;<a href="mailto:rozzin@hackerposse.com">rozzin@hackerposse.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 3/6/21 7:46 PM, Ben Scott wrote:<br>
&gt; On Thu, Mar 4, 2021 at 9:57 PM Joshua Judson Rosen<br>
&gt; &lt;<a href="mailto:rozzin@hackerposse.com" target="_blank" rel="noreferrer">rozzin@hackerposse.com</a>&gt; wrote:<br>
&gt;&gt; And as a general word of advice from someone whose been burnt way too many times:<br>
&gt;&gt; if you&#39;re going to put timestamps in your filenames, either just use UTC<br>
&gt;&gt; or explicitly indicate which timezone the timestamps are assuming.<br>
&gt; <br>
&gt; Even that&#39;s not enough, because the stupid humans keep changing what<br>
&gt; the time zones mean.  Say you find a file that has a stored time of<br>
&gt; 2007 MAR 31 17:00 UTC.  If that file was written before 2005, then the<br>
&gt; offset to US Eastern is 5 hours.  If that file was written after 2005,<br>
&gt; the offset is 4 hours.  Which did the human mean when they instructed<br>
&gt; the computer to write the file?  No way of knowing, in the general<br>
&gt; case.<br>
<br>
Well..., I _did_ say &quot;either... or...&quot;. The general idea is just `don&#39;t assume<br>
that the reader will just know what scale/units you&#39;re using without it being declared&#39;.<br>
<br>
But some things that I really neglected to mention were:<br>
<br>
        1) that &quot;indicate which timezone&quot; is itself actually multiple different approaches:<br>
           hours offset from UTC, or the _symbolic_ timezone that automatically adjusts<br>
           to changing politics.<br>
        2) if you want to use those stamps to actually _convey information_, then<br>
           which one of _those_ you need depends on specifically what you&#39;re doing:<br>
           sometimes you want to indicate an actual point on the general timeline,<br>
           sometimes you want to indicate how something fits into the local schedule<br>
           or relates to `solar time&#39; (e.g.: as a _nerd_, I thought it&#39;d be a great idea<br>
           to set my digital cameras&#39; clocks to UTC and just never deal with DST or<br>
           any other timezone issues when traveling..., and then as a _photographer_ I realized<br>
           what a lousy idea that could end up being...).<br>
        3) sometimes you need to indicate _both_<br>
        4) you might even need to give your symbolic timezone, your timezone offset, _and_ UTC..., _and_....<br>
<br>
... BUT: even if you only do any arbitrary one of those things, at least you won&#39;t end up<br>
mistakenly overwriting your records due to multiple distinct points in time<br>
end up generating the same filename.<br>
<br>
(the inverse issue, of whether you end up mistakenly _failing to generate collisions when you want to_<br>
  can also be a concern of course; but I&#39;d rather leave that as an exercise to the reader..., or to Ben ;p)<br>
<br>
I *also* didn&#39;t even touch on how much all of this will annoy people who like nicely-sorting filenames... ;p<br>
<br>
Every once in a while, I go back to try to find a solution to all of the other problems that also<br>
fits in with _that_, and just fail. Basically..., whenever anyone asks me &quot;what time is it?&quot;.<br>
And I think I&#39;ve been at that for 10 years now....<br>
_______________________________________________<br>
gnhlug-discuss mailing list<br>
<a href="mailto:gnhlug-discuss@mail.gnhlug.org" target="_blank" rel="noreferrer">gnhlug-discuss@mail.gnhlug.org</a><br>
<a href="http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/" rel="noreferrer noreferrer" target="_blank">http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/</a><br>
</blockquote></div>