Re: RFC822 date-string to NSDate

2008-06-30 Thread Kyle Sluder
On Mon, Jun 30, 2008 at 3:14 PM, Steve Byan <[EMAIL PROTECTED]> wrote: > 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. Well it looks like the RFC822 date grammar is context-free so implementin

Re: RFC822 date-string to NSDate

2008-06-30 Thread Steve Byan
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 b

Re: RFC822 date-string to NSDate

2008-06-30 Thread Nick Zitzmann
On Jun 30, 2008, at 12:35 PM, Steve Byan wrote: I'm having trouble grokking NSDateFormatter on OS X 10.4. Does it support RFC822-style dates? It should, but you'll have to make your own format string to do that. NSDateFormatter does make some guesses at the format when getting the date

Re: RFC822 date-string to NSDate

2008-06-30 Thread Andy Lee
I'm not too familiar with NSDateFormatter. Do you need to call - setDateFormat:? --Andy On Jun 30, 2008, at 2:35 PM, Steve Byan wrote: I'm having trouble grokking NSDateFormatter on OS X 10.4. Does it support RFC822-style dates? I'm parsing an XML document; here's the pertinent code snipp

RFC822 date-string to NSDate

2008-06-30 Thread Steve Byan
I'm having trouble grokking NSDateFormatter on OS X 10.4. Does it support RFC822-style dates? I'm parsing an XML document; here's the pertinent code snippet: NSLog(@"observation_time_rfc822 element end"); NSDateFormatter * dateFormatter = [[NSDateFormatter alloc] init];