Representing dates B.C. with NSCalendarDate
Representing dates B.C. with NSCalendarDate
- Subject: Representing dates B.C. with NSCalendarDate
- From: John Blackburn <email@hidden>
- Date: Wed, 25 Sep 2002 19:45:25 -0700
How can you represent dates B.C. using NSCalendarDate?
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.
Example: Peloponnesian War (-431-404). If it were A.D., I'd represent
it like this:
start: 431-01-01 00:00:00 +0800
end: 404-01-01 00:00:00 +0800
But it's B.C., so I tried using negative numbers:
start: -431-01-01 00:00:00 +0800
end: -404-01-01 00:00:00 +0800
This didn't work. What will work?
Thanks,
j o h n
_______________________________________________
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.