bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #26361] NSCalendarDate %e format shows leading zeros


From: Doug Simons
Subject: [bug #26361] NSCalendarDate %e format shows leading zeros
Date: Tue, 28 Apr 2009 16:36:55 +0000
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_4_11; en) AppleWebKit/525.27.1 (KHTML, like Gecko) Version/3.2.1 Safari/525.27.1

Follow-up Comment #2, bug #26361 (project gnustep):

Okay, here's an additional patch to NSCalendarDate that implements optional
field widths for numeric fields in a date format. I believe this functionality
is working the same as Cocoa's. You can supply a field width such as "%5d"
which will left-pad the day of the month with spaces, or "%05d" which will
fill with zeros. This capability is mainly useful for things like "%1d"
(equivalent to "%e" now) or "%1m" which is the only way to get a single-digit
month to appear as a single character.

I also set %e to work the same as Cocoa, without a leading space for
single-digit days.

(file #18043)
    _______________________________________________________

Additional Item Attachment:

File name: NSCalendarDate.m.patch         Size:6 KB


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?26361>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]