NSWeekCalendarUnit and DIN 1355 / ISO 8601
NSWeekCalendarUnit and DIN 1355 / ISO 8601
- Subject: NSWeekCalendarUnit and DIN 1355 / ISO 8601
- From: Alexander Spohr <email@hidden>
- Date: Wed, 13 Jan 2010 14:11:55 +0100
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