NSCalendarDate and locale
NSCalendarDate and locale
- Subject: NSCalendarDate and locale
- From: Joe Chan <email@hidden>
- Date: Mon, 28 Jan 2002 10:38:50 -0500
I'm using NSCalendarDate to parse a date string from a standard
mail header, and I'm trying to understand how locale comes into
play. As I understand (and I don't have much experience with
non-US systems), the date string in the Date field of mail
header uses only short English month and day names. If I used
initWithString:calendarFormat: message to parse the date string
in a non-English system, those name won't match. This suggests
that I should use initWithString:calendarFormat:locale: to
specify the parsing to be done with an English locale. My
question is: how do I get an English locale dictionary on a
non-English system? As far as I can see in NSUserDefaults, I can
only easily get the user's current default, not perhaps a named
one.
-----------
Joe Chan
email@hidden
http://www.firstian.com