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 (Cocoa-dev@lists.apple.com)

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 arch...@mail-archive.com

Reply via email to