mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-07 22:44:49 +00:00
ICU-5241 Quarters have *three* months each, not four...
X-SVN-Rev: 19757
This commit is contained in:
parent
55df551f1c
commit
88473fe59c
1 changed files with 6 additions and 6 deletions
|
@ -910,19 +910,19 @@ public class SimpleDateFormat extends DateFormat {
|
|||
break;
|
||||
case 27: // 'Q' - QUARTER
|
||||
if (count >= 4)
|
||||
buf.append(formatData.quarters[value/4]);
|
||||
buf.append(formatData.quarters[value/3]);
|
||||
else if (count == 3)
|
||||
buf.append(formatData.shortQuarters[value/4]);
|
||||
buf.append(formatData.shortQuarters[value/3]);
|
||||
else
|
||||
zeroPaddingNumber(buf, (value/4)+1, count, maxIntCount);
|
||||
zeroPaddingNumber(buf, (value/3)+1, count, maxIntCount);
|
||||
break;
|
||||
case 28: // 'q' - STANDALONE QUARTER
|
||||
if (count >= 4)
|
||||
buf.append(formatData.standaloneQuarters[value/4]);
|
||||
buf.append(formatData.standaloneQuarters[value/3]);
|
||||
else if (count == 3)
|
||||
buf.append(formatData.standaloneShortQuarters[value/4]);
|
||||
buf.append(formatData.standaloneShortQuarters[value/3]);
|
||||
else
|
||||
zeroPaddingNumber(buf, (value/4)+1, count, maxIntCount);
|
||||
zeroPaddingNumber(buf, (value/3)+1, count, maxIntCount);
|
||||
break;
|
||||
default:
|
||||
// case 3: // 'd' - DATE
|
||||
|
|
Loading…
Add table
Reference in a new issue