• 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: RFC822 date-string to NSDate
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: RFC822 date-string to NSDate


  • Subject: Re: RFC822 date-string to NSDate
  • From: Steve Byan <email@hidden>
  • Date: Mon, 30 Jun 2008 15:14:32 -0400


On Jun 30, 2008, at 2:50 PM, Andy Lee wrote:

I'm not too familiar with NSDateFormatter. Do you need to call - setDateFormat:?

Ah, thanks, I missed the statement hidden on page 23 of "Data Formatting Programming Guide for Cocoa", which says:


"You use the format string is used to specify both the input to and the output from date formatter objects."

That's a bummer, because RFC822 dates have some optional elements and so don't conform to a fixed format. I hoped that the default parsing was smart.

Anyone have any pointers to some Objective-C RFC822-date-time parsing code? An NSDateFormatter category containing dateFromRFC822DateTimeString: would be great :-)

Best regards,
-Steve

--
Steve Byan <email@hidden>
Littleton, MA 01460


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: RFC822 date-string to NSDate
      • From: "Kyle Sluder" <email@hidden>
References: 
 >RFC822 date-string to NSDate (From: Steve Byan <email@hidden>)
 >Re: RFC822 date-string to NSDate (From: Andy Lee <email@hidden>)

  • Prev by Date: Re: garbage collection and NSConnection
  • Next by Date: Re: Connecting to non-standard HTTP ports with authorization
  • Previous by thread: Re: RFC822 date-string to NSDate
  • Next by thread: Re: RFC822 date-string to NSDate
  • Index(es):
    • Date
    • Thread