• 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
Representing dates B.C. with NSCalendarDate
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Representing dates B.C. with NSCalendarDate
      • From: Finlay Dobbie <email@hidden>
  • Prev by Date: Re: Request for comments: archive for mailing lists
  • Next by Date: NSString and control character
  • Previous by thread: Re: (newbie)cocoa and darwin 6.0....
  • Next by thread: Re: Representing dates B.C. with NSCalendarDate
  • Index(es):
    • Date
    • Thread