<div dir="ltr">yeess.  But what I want is too know if I use one or the other of the timeZones, will that zone (specifically, the offset) give me the same time, or a different time?<div><br></div><div>If there is not a valid way to compare timezones, and we don&#39;t want to check if they are the same, then I would fall back to asking if the offsets are the same (which is what I was/am proposing that TimeZone&gt;&gt;= do - compare by offsets, not by name or abbreviation).</div><div><br></div><div>In my case, I was picking up the timezone from a windows box, which has different names than what is the &#39;standard&#39; in the image - and quite possibly different by version of Windows (haven&#39;t checked that yet).  The offset, though, is consistent, at least.</div><div><br></div><div>-cbc</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 8, 2016 at 5:31 PM, Paul DeBruicker <span dir="ltr">&lt;<a href="mailto:pdebruic@gmail.com" target="_blank">pdebruic@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">TimeZones at different points in time, have different offsets (e.g. January 1<br>
and July 1 in L.A. -8 and -7 hours respectively).<br>
<br>
And they also, at different points in time, have different offsets for the<br>
same point in time (e.g.<br>
<a href="https://en.wikipedia.org/wiki/Time_in_Indiana#2006" rel="noreferrer" target="_blank">https://en.wikipedia.org/wiki/<wbr>Time_in_Indiana#2006</a>).<br>
<br>
<br>
And their offset change arbitrarily without much notice<br>
(e.g.<a href="https://www.washingtonpost.com/news/worldviews/wp/2016/07/06/egypt-cancelled-daylight-savings-time-three-days-before-it-was-due-to-start/" rel="noreferrer" target="_blank">https://www.<wbr>washingtonpost.com/news/<wbr>worldviews/wp/2016/07/06/<wbr>egypt-cancelled-daylight-<wbr>savings-time-three-days-<wbr>before-it-was-due-to-start/</a>)<br>
<br>
<br>
<br>
Maybe a better approach for your use is to have a Time Zone cache so there<br>
is only one canonical time zone for each time zone name/abbreviation combo<br>
you&#39;re dealing with in your images.<br>
<br>
<br>
<br>
<br>
<br>
<br>
cbc wrote<br>
<span class="">&gt; This change is requested after I couldn&#39;t get get TimeZone compares to<br>
&gt; work.  Try this before loading:<br>
&gt;   (TimeZone offset: (Duration hours: -7 minutes: 0) name: &#39;Pacific Time<br>
&gt; (US<br>
&gt; &amp; Canada)&#39; abbreviation: &#39;PDT&#39;)<br>
&gt;   =<br>
&gt;   (TimeZone offset: (Duration hours: -7 minutes: 0) name: &#39;Pacific Time<br>
&gt; (US<br>
&gt; &amp; Canada)&#39; abbreviation: &#39;PDT&#39;)<br>
&gt;<br>
&gt; Returns false - since the hash isn&#39;t the same (different instances),<br>
&gt; although what they represent is exactly the same.<br>
&gt;<br>
&gt; After this, returns true.<br>
&gt;<br>
&gt; -cbc<br>
&gt;<br>
</span>&gt; On Thu, Sep 8, 2016 at 4:40 PM, &amp;lt;<br>
<br>
&gt; commits@.squeak<br>
<span class=""><br>
&gt; &amp;gt; wrote:<br>
&gt;<br>
&gt;&gt; A new version of Chronology-Core was added to project The Inbox:<br>
&gt;&gt; <a href="http://source.squeak.org/inbox/Chronology-Core-cbc.8.mcz" rel="noreferrer" target="_blank">http://source.squeak.org/<wbr>inbox/Chronology-Core-cbc.8.<wbr>mcz</a><br>
&gt;&gt;<br>
&gt;&gt; ==================== Summary ====================<br>
&gt;&gt;<br>
&gt;&gt; Name: Chronology-Core-cbc.8<br>
&gt;&gt; Author: cbc<br>
&gt;&gt; Time: 8 September 2016, 4:39:41.903555 pm<br>
&gt;&gt; UUID: 7315e61d-3652-fe44-8472-<wbr>8037bd3ecc83<br>
&gt;&gt; Ancestors: Chronology-Core-bf.7<br>
&gt;&gt;<br>
&gt;&gt; Add a rational #= to TimeZone - based on offset.<br>
&gt;&gt;<br>
&gt;&gt; =============== Diff against Chronology-Core-bf.7 ===============<br>
&gt;&gt;<br>
&gt;&gt; Item was added:<br>
&gt;&gt; + ----- Method: TimeZone&gt;&gt;= (in category &#39;comparing&#39;) -----<br>
&gt;&gt; + = aTimeZone<br>
&gt;&gt; +       ^offset = aTimeZone offset!<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
<br>
<br>
<br>
<br>
<br>
</span>--<br>
View this message in context: <a href="http://forum.world.st/The-Inbox-Chronology-Core-cbc-8-mcz-tp4914866p4914869.html" rel="noreferrer" target="_blank">http://forum.world.st/The-<wbr>Inbox-Chronology-Core-cbc-8-<wbr>mcz-tp4914866p4914869.html</a><br>
Sent from the Squeak - Dev mailing list archive at Nabble.com.<br>
<br>
</blockquote></div><br></div>