<div dir="ltr">Ok.<div><br></div><div><div>Date today + 15 days</div><div>Date today + 1 day</div><div>((Date today + 1 day)  - Date today) days</div></div><div><br></div><div>That works.  So, does this mean that we should deprecate the following methods in Date so that the observed API doesn&#39;t confuse future users?</div><div>#addDays:, #addMonths:, #subtractDays:, #subtractDate: ?</div><div><br></div><div>Also, TimeStamp is not marked as deprecated in any way at all - no comment, no other marking.  Although I normally wouldn&#39;t have noticed, since I have ODBC loaded which loads a completely different TimeStamp (with Magnitude superclass instead of DateAndTime like the default TimeStamp in Trunk).  Which means it should probably be patched to use a more normal TimeStamp representation.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 12, 2014 at 8:16 AM, Chris Muller <span dir="ltr">&lt;<a href="mailto:asqueaker@gmail.com" target="_blank">asqueaker@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">Just use the binary operators.<br>
<br>
myDate + 3 days.<br>
myDate - 3 days.<br>
myDateAndTime + 3 days.<br>
myDateAndTime - 3 days.<br>
3 days fromNow.<br>
3 days ago.<br>
<br>
Finally, TimeStamps are deprecated, don&#39;t use them.<br>
<div class="HOEnZb"><div class="h5"><br>
On Fri, Sep 12, 2014 at 9:59 AM, Chris Cunningham<br>
&lt;<a href="mailto:cunningham.cb@gmail.com">cunningham.cb@gmail.com</a>&gt; wrote:<br>
&gt; at least adjusting the date portions?  We currently have:<br>
&gt;<br>
&gt; Date - #addDays:, #subtractDays:<br>
&gt; TimeStamp - #plusDays:, #minusDays:<br>
&gt; DateAndTime - #+ and #-<br>
&gt;<br>
&gt;  I keep getting messed up by which type of object I have, and which method<br>
&gt; it understands to alter the date portion.<br>
&gt;<br>
&gt; Would the community be interested in having these methods spread out to all<br>
&gt; of the types so that we can have more polymorphic date representations?<br>
&gt; (and, maybe, even the rest of the protocols?)<br>
&gt;<br>
&gt; Or, alternatively, removing some of the options and settling on one<br>
&gt; standard?<br>
&gt;<br>
&gt; -cbc<br>
&gt;<br>
&gt;<br>
&gt;<br>
<br>
</div></div></blockquote></div><br></div>