Re: Representing dates B.C. with NSCalendarDate
Re: Representing dates B.C. with NSCalendarDate
- Subject: Re: Representing dates B.C. with NSCalendarDate
- From: Finlay Dobbie <email@hidden>
- Date: Fri, 27 Sep 2002 15:28:57 +0100
On Thursday, September 26, 2002, at 03:45 am, John Blackburn wrote:
The docs say the year as represented in NSCalendarDate is relative to
"the base year of the Common Era...(which is the same as 1 A.D.)."
But they don't say how to represent years before that date.
NSCalendarDate's date parsing code appears to have problems with
negative years in the %Y field, but you can always use:
NSCalendarDate *date = [NSCalendarDate dateWithYear:-414 month:1
day:1 hour:0 minute:0 second:0 timeZone:[NSTimeZone systemTimeZone]];
-- Finlay
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.