JDK-4485134 : Date.toString uses the format which doesn't distinguish B.C. dates from A.D.ones
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.util:i18n
  • Affected Version: 1.3.0
  • Priority: P5
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2001-07-27
  • Updated: 2003-09-09
  • Resolved: 2003-09-09
Related Reports
Duplicate :  
Relates :  
Description
Date.toString() uses the format "EEE MMM dd HH:mm:ss zzz yyyy" for SimpleDateFormat. There is no way to distinguish B.C. and A.D. dates with the format.

Comments
WORK AROUND Use SimpleDateFormat with 'G' to produce the era name. masayoshi.okutsu@Eng 2001-07-27
27-07-2001

EVALUATION The Date class is not designed to deal with any B.C. dates. e.g., no getEra() or setEra(). The whole class design needs to be reviewed for appropriate era support. masayoshi.okutsu@Eng 2001-07-27 This problem will be addressed by 4484483. ###@###.### 2003-09-09
27-07-2001