• 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
NSWeekCalendarUnit and DIN 1355 / ISO 8601
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSWeekCalendarUnit and DIN 1355 / ISO 8601
      • From: Alexander Spohr <email@hidden>
  • Prev by Date: Re: Application help window size
  • Next by Date: Re: Managed Object with Getter
  • Previous by thread: Re: Application help window size
  • Next by thread: Re: NSWeekCalendarUnit and DIN 1355 / ISO 8601
  • Index(es):
    • Date
    • Thread