Re: NSCalendar week-of-year calculations and week 1
Re: NSCalendar week-of-year calculations and week 1
- Subject: Re: NSCalendar week-of-year calculations and week 1
- From: Nick Zitzmann <email@hidden>
- Date: Fri, 04 Jan 2013 18:49:40 -0700
On Jan 4, 2013, at 6:38 PM, Greg Parker <email@hidden> wrote:
>> Short question: Given a year, week-of-year, and weekday in that week-of-year, what is the most reliable way to get the NSDate for that day even when the week-of-year is week 1? This is calendrical grey area, because there may be two week 1s in a year.
>
> Short answer: Use NSYearForWeekOfYearCalendarUnit.
Thanks, Kyle and Greg. That was what I needed.
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden