• 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
Re: NSDate: dates before the year 100
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: NSDate: dates before the year 100
      • From: Jim Hamilton <email@hidden>
References: 
 >NSDate: dates before the year 100 (From: Robert Kuilman <email@hidden>)

  • Prev by Date: Re: Race Condition with NSPopUpButton.[Solved]
  • Next by Date: Problems with NSOutlineView and NSDictionary
  • Previous by thread: NSDate: dates before the year 100
  • Next by thread: Re: NSDate: dates before the year 100
  • Index(es):
    • Date
    • Thread