<div dir="ltr">Hi David<br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jun 27, 2016 at 9:40 PM, David T. Lewis <span dir="ltr">&lt;<a href="mailto:lewis@mail.msen.com" target="_blank">lewis@mail.msen.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">&lt;snip&gt;<br>
<span class=""><br>
&gt;<br>
&gt; For what it is worth, I spend &gt;80% of my time working with<br>
&gt; dates/timestamps, trying to turn them into Magnitudes for manipulations.<br>
&gt; The other 20%, I really enjoy them as timespans with locales since I deal<br>
&gt; with times from around the world.  But the two uses are not quite easy to<br>
&gt; deal with - doable, just not quite intuitive.<br>
&gt;<br>
&gt; -cbc<br>
<br>
</span>Based on your experience, do you think that it would make sense to have<br>
two classes for Day and Date, where one represents date as duration, and<br>
the other represents date as magnitude?<br>
<br>
Dave<br>
<div class=""><div class="h5"></div></div></blockquote></div><br></div><div class="gmail_extra">Sorry for the long delay.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Having Date (or Day) as a duration has positive benefits. For instance, I want to know if a particular timestamp (when something happened, what we call DateAndTime) happened on a particular Date.  The DateAndTime might be in a different timezone than the Date we are checking.  Being able to just ask &#39;is this timestamp from this date&#39; is nice:</div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_extra">theDate := (&#39;2016-07-06&#39; asDate start offset: 4 hours) asDate.</div><div class="gmail_extra">theTime := &#39;2016-07-06 20:34:02&#39; asDateAndTime offset: 8 hours.</div><div class="gmail_extra">theDate includes: theTime &quot; =&gt; false&quot;</div><div class="gmail_extra">theTime := &#39;2016-07-06 20:34:02&#39; asDateAndTime offset: -8 hours.</div><div class="gmail_extra">theDate includes: theTime &quot; =&gt; true&quot;</div><div><br></div><div>Although it is hard to get a date in a certain timezone - is there a better way than what I wrote above?  Rarely do I need it in my timezone - instead I need to specify it directly or not have it present at all.</div><div><br></div><div>Most of the time, though, I just as a number, not a duration. I just want to show it, sometimes work from its beginning to some other time, and ignore that it is a duration.</div><div><br></div><div>Looking at how you are interpreting my statement that I want it as a magnitude, I think I was using the wrong words.  What I really meant was that I wanted it ignore the duration (and most especially the timezone) - but not use it as a raw number of some kind.</div><div><br></div><div>Thanks,</div><div>-cbc</div></div></div>