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/
_______________________________________________
Bug-gnustep mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-gnustep