Constants |
SHORT_DAY |
Day of month, one or two digits, no leading zero. |
LONG_DAY |
Day of month, two digits, with leading zero. |
SHORT_DAY_NAME |
Day of week, abbreviated name. |
LONG_DAY_NAME |
Day of week, full name. |
SHORT_MONTH |
Month of year, one or two digits, no leading zero. |
LONG_MONTH |
Month of year, with leading zero. |
SHORT_MONTH_NAME |
Full month name. |
LONG_MONTH_NAME |
Abbreviated month name. |
SHORT_YEAR |
Year, two digits. |
LONG_YEAR |
Year, four digits. |
SHORT_ERA |
Full era name, for example, "Before Christ" or "Anno Dominus". |
LONG_ERA |
Abbreviated era name, for example, BC or AD. |
SHORT_YEAR_AND_ERA |
Combined short year and era, order depends on locale/calendar. |
LONG_YEAR_AND_ERA |
Combined full year and era, order depends on locale/calendar. |
SHORT_QUARTER |
Short quarter, for example, "Q1" |
LONG_QUARTER |
Long quarter, for example, "1st quarter" |
Constants' Details |
SHORT_DAY
const long SHORT_DAY = 1;
- Description
- Day of month, one or two digits, no leading zero.
|
|
LONG_DAY
const long LONG_DAY = 2;
- Description
- Day of month, two digits, with leading zero.
|
|
SHORT_DAY_NAME
const long SHORT_DAY_NAME = 3;
- Description
- Day of week, abbreviated name.
|
|
LONG_DAY_NAME
const long LONG_DAY_NAME = 4;
- Description
- Day of week, full name.
|
|
SHORT_MONTH
const long SHORT_MONTH = 5;
- Description
- Month of year, one or two digits, no leading zero.
|
|
LONG_MONTH
const long LONG_MONTH = 6;
- Description
- Month of year, with leading zero.
|
|
SHORT_MONTH_NAME
const long SHORT_MONTH_NAME = 7;
- Description
- Full month name.
|
|
LONG_MONTH_NAME
const long LONG_MONTH_NAME = 8;
- Description
- Abbreviated month name.
|
|
SHORT_YEAR
const long SHORT_YEAR = 9;
- Description
- Year, two digits.
|
|
LONG_YEAR
const long LONG_YEAR = 10;
- Description
- Year, four digits.
|
|
SHORT_ERA
const long SHORT_ERA = 11;
- Description
- Full era name, for example, "Before Christ" or "Anno Dominus".
|
|
LONG_ERA
const long LONG_ERA = 12;
- Description
- Abbreviated era name, for example, BC or AD.
|
|
SHORT_YEAR_AND_ERA
const long SHORT_YEAR_AND_ERA = 13;
- Description
- Combined short year and era, order depends on locale/calendar.
|
|
LONG_YEAR_AND_ERA
const long LONG_YEAR_AND_ERA = 14;
- Description
- Combined full year and era, order depends on locale/calendar.
|
|
SHORT_QUARTER
const long SHORT_QUARTER = 15;
- Description
- Short quarter, for example, "Q1"
|
|
LONG_QUARTER
const long LONG_QUARTER = 16;
- Description
- Long quarter, for example, "1st quarter"
|
|
Copyright © 2013, The Apache Software Foundation, Licensed under the Apache License, Version 2.0. Apache, the Apache feather logo, Apache OpenOffice and OpenOffice.org are trademarks of The Apache Software Foundation. Other names may be trademarks of their respective owners.