Re: NSWeekCalendarUnit and DIN 1355 / ISO 8601
Re: NSWeekCalendarUnit and DIN 1355 / ISO 8601
- Subject: Re: NSWeekCalendarUnit and DIN 1355 / ISO 8601
- From: Alexander Spohr <email@hidden>
- Date: Fri, 15 Jan 2010 09:59:07 +0100
Filed a bug, Problem ID: 7545433
Am 13.01.2010 um 14:11 schrieb Alexander Spohr:
> Hi list,
>
> I just fell over NSWeekCalendarUnit. It delivers the week of a date.
> Sadly it seems to do so only for the US but not for e.g. Germany and all ISO 8601 countries (most of europe) - except UK.
>
> The current week is 3 in the US but 2 in Europe (except UK ;)
>
> For a list see:
> http://en.wikipedia.org/wiki/Seven-day_week#Week_numbering
>
> Currently we use something like this:
>
> [[[NSCalendar currentCalendar]
> components:NSWeekCalendarUnit fromDate:[NSDate date]]
> week];
>
> Is this a bug of NSCalendar or am I doing something wrong?
>
> atze
_______________________________________________
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