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

_______________________________________________

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