Re: NSDate: dates before the year 100
Re: NSDate: dates before the year 100
- Subject: Re: NSDate: dates before the year 100
- From: Nick Zitzmann <email@hidden>
- Date: Tue, 2 Aug 2005 07:19:07 -0600
On Aug 2, 2005, at 6:30 AM, Robert Kuilman wrote:
[NSDate dateWithNaturalLanguageString:@"Jan 25 33"];
[NSDate dateWithNaturalLanguageString:@"Jan 25 033"];
[NSDate dateWithNaturalLanguageString:@"Jan 25 0033"];
all return Jan 25 1933 as their value.
Any insights as to how to resolve this issue?
I'm not sure about BC dates, but this seems to work for the above:
[NSCalendarDate dateWithYear:33 month:1 day:25 hour:0 minute:0 second:
0 timeZone:nil];
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden