Language

The Free and Open Productivity Suite
Released: Apache OpenOffice 4.1.15

API

SDK

Tips ‘n’ Tricks

Miscellaneous


:: com :: sun :: star :: i18n ::

constants group CalendarDisplayCode
Description
Constants to use with XExtendedCalendar::getDisplayString().

The examples given are for an English Gregorian calendar, note that other calendars or locales may return completely different strings, for example not a four digit year but a CJK name instead.

Since
OOo 1.1.2

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"
Top of Page

Apache Software Foundation

Copyright & License | Privacy | Contact Us | Donate | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. The Apache feather logo is a trademark of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.