• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSCalendar week-of-year calculations and week 1
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >NSCalendar week-of-year calculations and week 1 (From: Nick Zitzmann <email@hidden>)
 >Re: NSCalendar week-of-year calculations and week 1 (From: Greg Parker <email@hidden>)

  • Prev by Date: Re: NSCalendar week-of-year calculations and week 1
  • Next by Date: Re: scroll bars and visible rect
  • Previous by thread: Re: NSCalendar week-of-year calculations and week 1
  • Next by thread: Floating-point differences between ARM processors
  • Index(es):
    • Date
    • Thread