<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'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'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"><<a href="mailto:asqueaker@gmail.com" target="_blank">asqueaker@gmail.com</a>></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't use them.<br>
<div class="HOEnZb"><div class="h5"><br>
On Fri, Sep 12, 2014 at 9:59 AM, Chris Cunningham<br>
<<a href="mailto:cunningham.cb@gmail.com">cunningham.cb@gmail.com</a>> wrote:<br>
> at least adjusting the date portions? We currently have:<br>
><br>
> Date - #addDays:, #subtractDays:<br>
> TimeStamp - #plusDays:, #minusDays:<br>
> DateAndTime - #+ and #-<br>
><br>
> I keep getting messed up by which type of object I have, and which method<br>
> it understands to alter the date portion.<br>
><br>
> Would the community be interested in having these methods spread out to all<br>
> of the types so that we can have more polymorphic date representations?<br>
> (and, maybe, even the rest of the protocols?)<br>
><br>
> Or, alternatively, removing some of the options and settling on one<br>
> standard?<br>
><br>
> -cbc<br>
><br>
><br>
><br>
<br>
</div></div></blockquote></div><br></div>