• 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: Need localization-proof method of transporting dates.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Need localization-proof method of transporting dates.


  • Subject: Re: Need localization-proof method of transporting dates.
  • From: Uli Kusterer <email@hidden>
  • Date: Sun, 5 Apr 2009 11:51:08 +0200

On 05.04.2009, at 11:24, Graham Cox wrote:
However it does seem as if writing out the date as seconds since 1970 (or a string, as Tommy suggested) might be safer and cut out any potential gotchas that I haven't realised existed.


 Keep us posted whether that fixes it.

Have you got a copy of the user's Preferences file? There might be some clue in there, e.g. use of different date separators or so. My guess would be that an invalid date will probably end up as [NSDate distantPast], or NIL and thus return NO if it's the first item in your test, or throw if it's the second.

Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de





_______________________________________________

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


References: 
 >Re: Need localization-proof method of transporting dates. (From: Greg Guerin <email@hidden>)
 >Re: Need localization-proof method of transporting dates. (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: Need localization-proof method of transporting dates.
  • Next by Date: Re: Toll-free bridge type at runtime
  • Previous by thread: Re: Need localization-proof method of transporting dates.
  • Next by thread: Re: Need localization-proof method of transporting dates.
  • Index(es):
    • Date
    • Thread