• 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: NSCalendarDate and locale
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSCalendarDate and locale


  • Subject: Re: NSCalendarDate and locale
  • From: Joe Chan <email@hidden>
  • Date: Mon, 28 Jan 2002 12:23:40 -0500

I already handle folding whitespace and such. The thing about comment is more tricky. the grammar specified in RFC2822 doesn't seem to allow comments in the timestamp (but then I'm not spec lawyer). In general, I don't think NSCalendarDate can handle anything other strictly formatted input according to the format string (even trailing characters of an input string causes it to fail).

On Monday, January 28, 2002, at 11:50 AM, Malte Tancred wrote:

Just a thought that doesn't answer your question, but it
might be worth something...

I don't know how well NSCalendarDate handles the format of
the Date message header. A good document describing many
variations of the header is available here:

http://cr.yp.to/immhf/date.html

Perhaps it would be better to write the header parsing
code yourself and then use NSCalendarDate, especially
considering the following statement from the link above:

"One can in principle insert extra spaces, tabs, and
comments into a timestamp, like any other tokenizable
field value:

Mon (Lundi), 4(quatre)May (Mai) 1998(1998-05-04)03 : 04 : 12 +0000
"

I'm not sure NSCalendarDate handles RFC822 header field
comments like the above. Perhaps I'm wrong.

Cheerio,
Malte

--
Malte Tancred
Computer programmer, Oops AB, Sweden
mailto:email@hidden
http://www.oops.se/


References: 
 >Re: NSCalendarDate and locale (From: Malte Tancred <email@hidden>)

  • Prev by Date: Re: Can a view know it's running in IB?
  • Next by Date: What's the Real Story on Keys for NSDictionary
  • Previous by thread: Re: NSCalendarDate and locale
  • Next by thread: Re: NSCalendarDate and locale
  • Index(es):
    • Date
    • Thread