JDK-5061412 : (fmt) remove date/time conversion suffix 'P'
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util
  • Affected Version: 5.0
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2004-06-10
  • Updated: 2017-05-16
  • Resolved: 2004-06-25
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
5.0 b58Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Description
Based on various standards which the date/time conversion character suffixes are
inspired by, we defined 'p' and 'P' for lower and upper case am/pm markers (case
switched in beta2 due to request 4989961).

In bug 4962433 we introduced the set of conversions which are capital letters,
e.g. 'X', 'E', and 'T'.  There are now four date/time conversion to access the
same set of markers: tp, tP, Tp, and TP.  The user must now understand
conversion percedence to reliably predict whether upper or lower case will be
returned.  

It would be less confusing if we simply dropped the redundant 'P' date/time suffix.

-- iag@sfbay 2004-06-10

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: tiger-rc FIXED IN: tiger-rc INTEGRATED IN: tiger-b58 tiger-rc
17-07-2004

SUGGESTED FIX *** /tmp/geta28957 Tue Jun 8 16:23:42 2004 --- Formatter.java Tue Jun 8 16:13:49 2004 *************** *** 388,398 **** * in lower case, e.g."<tt>am</tt>" or "<tt>pm</tt>". Use of the conversion * prefix <tt>'T'</tt> forces this output to upper case. * - * <tr><td valign="top"><tt>'P'</tt> - * <td> Locale-specific {@linkplain - * java.text.DateFormatSymbols#getAmPmStrings morning or afternoon} marker - * in upper case, e.g."<tt>AM</tt>" or "<tt>PM</tt>". - * * <tr><td valign="top"><tt>'z'</tt> * <td> <a href="http://www.ietf.org/rfc/rfc0822.txt">RFC&nbsp;822</a> * style numeric time zone offset from GMT, e.g. <tt>-0800</tt>. --- 388,393 ---- *************** *** 1543,1557 **** * that <tt>'p'</tt> produces lower-case output. This is different from * GNU <tt>date</tt> and POSIX <tt>strftime(3c)</tt> which produce * upper-case output.) - * - * <tr><td valign="top"><tt>'P'</tt> - * <td valign="top"> <tt>'&#92;u0050'</tt> - * <td> Locale-specific {@linkplain - * java.text.DateFormatSymbols#getAmPmStrings morning or afternoon} marker - * in upper case, e.g."<tt>AM</tt>" or "<tt>PM</tt>". (Note that - * <tt>'P'</tt> produces upper-case output. This is different from GNU - * <tt>date</tt> and POSIX <tt>strftime(3c)</tt> which produce lower-case - * output.) * * <tr><td valign="top"><tt>'z'</tt> * <td valign="top"> <tt>'&#92;u007a'</tt> --- 1538,1543 ---- Additional adjustments to the specification of 'p' may be required. -- iag@sfbay 2004-06-10
10-06-2004

EVALUATION The trivial code deletions to accmoplish this should be done immediately. -- iag@sfbay 2004-06-10
10-06-2004