On Dec 31, 2010, at 12:24 PM, Ken Thomases wrote:

> On Dec 31, 2010, at 7:22 AM, WT wrote:
> 
>> The following is straight out of my code, and computes the next Wed or Sat 
>> from a given date.
> 
> Computing days by calculating the number of seconds in a day will fail when 
> crossing into or out of Daylight Saving Time.
> 
> Use -[NSCalendar dateByAddingComponents:toDate:options:] as shown in the 
> documentation.
> 
> Regards,
> Ken

That's an excellent point, Ken, and one which hadn't occurred to me before. 
Thanks for pointing that out.

WT_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to