<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 16, 2014 at 8:27 AM, Bert Freudenberg <span dir="ltr">&lt;<a href="mailto:bert@freudenbergs.de" target="_blank">bert@freudenbergs.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><span class=""><br><div><div>On 15.09.2014, at 23:05, Chris Cunningham &lt;<a href="mailto:cunningham.cb@gmail.com" target="_blank">cunningham.cb@gmail.com</a>&gt; wrote:</div><br><blockquote type="cite"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 15, 2014 at 9:51 AM, Bert Freudenberg <span dir="ltr">&lt;<a href="mailto:bert@freudenbergs.de" target="_blank">bert@freudenbergs.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><br><div><span><div>On 15.09.2014, at 18:10, Chris Cunningham &lt;<a href="mailto:cunningham.cb@gmail.com" target="_blank">cunningham.cb@gmail.com</a>&gt; wrote:</div><br></span><blockquote type="cite"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span>On Sun, Sep 14, 2014 at 10:03 AM, Bert Freudenberg <span dir="ltr">&lt;<a href="mailto:bert@freudenbergs.de" target="_blank">bert@freudenbergs.de</a>&gt;</span> wrote:<br></span><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word"><div><br><div><span><div>On 14.09.2014, at 07:46, Chris Cunningham &lt;<a href="mailto:cunningham.cb@gmail.com" target="_blank">cunningham.cb@gmail.com</a>&gt; wrote:</div><br></span><span><blockquote type="cite"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>This allows the introduction of GenericMonth and GenericYear, so that we CAN do things like</div><div>   DateAndTime now + 4 months</div><div>This &#39;GenericMonth&#39; simple holds the number of months that you want to add (or subtract), and then does the appropriate addition of days based on the DateAndTime.  It handles different sizes of months, and leap years, just fine.  SImilarly for GenericYear.</div></div></div></div></blockquote></span></div><div><br></div></div><span><div>This sounds surprisingly reasonable to me ;-)</div><div><br></div><div>I love using Squeak interactively, and these messages appear to do &quot;what I&#39;d expect&quot;.</div><div><br></div><div>The only objection I&#39;d have would be that it&#39;s not general enough: if you rolled GenericMonth and GenericYear into one and added in a regular duration, we could get something reasonable out of an expression like (1 year + 1 month + 1 week + 1 day).</div></span></div></blockquote><span><div><br></div><div>That would be neat, but not straight-forward.  For instance, 1 month + 1 day is no necessarily the same as 1 day + 1 month!  At least, not with the expectations given before.  Specifically:<br></div><div><br></div><div>August 30th + 1 month + 1 day = October 1st.</div><div>August 30th + 1 day + 1 month = September 30th.</div><div><br></div><div>Similarly, I think you can run into trouble with ordering of years and months (around Leap years, mainly), but I haven&#39;t worked that out yet.</div><div><br></div><div>Maybe a third type of duration - that can take a sequence of additive (subtractive) durations, and apply them together later.</div></span></div></div></div></blockquote><div><br></div>You&#39;re right, that&#39;s how it should work.</div><span><br></span></div></blockquote><div>Do you have a proposal for what to call this thing?  I&#39;d be likely to call it something like &#39;SequenceOfDurations&#39;.  Which I&#39;m not really fond of.</div></div></div></div></blockquote></div><div><br></div></span><div>How about GenericDuration, to keep with the theme?</div><span class="HOEnZb"><font color="#888888"><br></font></span></div></blockquote><div>That sounds resaonable.  I&#39;ll add it in in the next day or two (when I get a couple of hours) and add comments as well - this class definitely deserves it (and the other two should have comments as well).</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><span class="HOEnZb"><font color="#888888"><div>
<span style="border-collapse:separate;border-spacing:0px;color:rgb(0,0,0);font-family:&#39;Lucida Grande&#39;;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="word-wrap:break-word"><div style="font-family:Helvetica"><span style="font-family:Helvetica">- Bert -</span></div><br></div></span><br>

</div>
<br></font></span></div><br><br>
<br></blockquote></div><br></div></div>