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

Re: Setting the Format for Dates


  • Subject: Re: Setting the Format for Dates
  • From: Nicholas Riley <email@hidden>
  • Date: Wed, 20 Nov 2002 11:12:35 -0600
  • Mail-followup-to: Andreas Mayer <email@hidden>, email@hidden

On Tue, Nov 19, 2002 at 11:40:29PM +0100, Andreas Mayer wrote:
> 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>

Yup, this stuff is horribly broken. There's a quick summary of most
of the bugs I've found at the top of this file:

<http://svn.sabi.net/repos/dev/trunk/Cocoa/Pester/Source/PSAlarmSetController.m>

and workarounds for -most- of the bugs (the only exception is date
formats getting corrupted, I don't really know how to deal with that
one since it affects Apple stuff such as the menubar clock too) here:

<http://svn.sabi.net/repos/dev/trunk/Cocoa/Pester/Source/NJRDateFormatter.m>

--
=Nicholas Riley <email@hidden> | <http://www.uiuc.edu/ph/www/njriley>
Pablo Research Group, Department of Computer Science and
Medical Scholars Program, University of Illinois at Urbana-Champaign
_______________________________________________
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: Andreas Mayer <email@hidden>
References: 
 >Setting the Format for Dates (From: Andreas Mayer <email@hidden>)

  • Prev by Date: Re: Using IBInspectorManager's addInspectorModeWithIdentifier method
  • Next by Date: Extending Printing Dialog
  • Previous by thread: Setting the Format for Dates
  • Next by thread: Re: Setting the Format for Dates
  • Index(es):
    • Date
    • Thread