• 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
Setting the Format for Dates
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Setting the Format for Dates


  • Subject: Setting the Format for Dates
  • From: Andreas Mayer <email@hidden>
  • Date: Tue, 19 Nov 2002 23:40:29 +0100

I'm trying to localize time/date strings. This is what the documentation says, specifiers should do:

%c shorthand for "%X %x", the locale format for date and time
%x date using the date representation for the locale, including the time zone (produces different results from strftime())
%X time using the time representation for the locale (produces different results from strftime())

Now %x, as well as %X give me:

Di Nov 19 2002 23:29:00 Europe/Berlin

While the language and the time format is correct, the date format is not. Besides, none of them should display date AND time, if I'm not mistaken.

%c does the same. Same wrong format, too.

Oh. The English 'localization' works as expected. <sigh>


bye. Andreas.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Setting the Format for Dates
      • From: Nicholas Riley <email@hidden>
  • Prev by Date: Drag and Drop it on my head...
  • Next by Date: Re: NSWorkspace, Email, Attachments...
  • Previous by thread: Re: Drag and Drop it on my head...
  • Next by thread: Re: Setting the Format for Dates
  • Index(es):
    • Date
    • Thread