public class CalendarUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DOJO_HEBREW |
static java.lang.String |
DOJO_ISLAMIC |
static java.lang.String |
GREGORIAN |
static java.lang.String |
HEBREW |
static java.lang.String |
ICU_GREGORIAN |
static java.lang.String |
ICU_HEBREW |
static java.lang.String |
ICU_ISLAMIC |
static java.lang.String |
ISLAMIC |
Constructor and Description |
---|
CalendarUtils() |
Modifier and Type | Method and Description |
---|---|
static com.ibm.icu.util.Calendar |
getDefaultICUCalendar()
Get the ICU4J default Calendar Instance based on System Base Calendar
|
static com.ibm.icu.util.Calendar |
getDefaultICUCalendar(java.util.Locale loc)
Get the ICU4J default Calendar Instance based on System Base Calendar
|
static com.ibm.icu.util.Calendar |
getDefaultICUCalendar(java.util.Locale loc,
java.util.TimeZone tz)
Get the ICU4J default Calendar Instance based on System Base Calendar
|
static com.ibm.icu.util.Calendar |
getDefaultICUCalendar(com.ibm.icu.util.ULocale loc,
com.ibm.icu.util.TimeZone tz)
Get the ICU4J default Calendar Instance based on System Base Calendar
|
static com.ibm.icu.util.ULocale |
getDefaultICULocale()
Get the ICU4J default ULocale using System Base Calendar
|
static com.ibm.icu.util.ULocale |
getDefaultICULocale(java.util.Locale loc)
Get the ICU ULocale for Locale using System Base Calendar
|
static java.lang.String |
getDojoDatePackage(java.lang.String CalendarType)
Get the Dojo date package based on the Calendar Type
|
static java.lang.String |
getFullMonthNameForMonth(int num,
java.util.Locale loc)
Returns the Localized Month Name for the Given
|
static com.ibm.icu.util.Calendar |
getICUCalendar(java.util.Locale loc,
java.lang.String CalendarType)
Get the ICU4J Calendar Instance
|
static com.ibm.icu.util.Calendar |
getICUCalendar(com.ibm.icu.util.TimeZone zone,
java.util.Locale loc,
java.lang.String CalendarType)
Get the ICU4J Calendar Instance
|
static com.ibm.icu.util.Calendar |
getICUCalendar(java.util.TimeZone zone,
java.util.Locale loc,
java.lang.String CalendarType)
Get the ICU4J Calendar Instance
|
static com.ibm.icu.util.Calendar |
getICUCalendar(UserInfo user)
Get the ICU4J Calendar Instance
|
static java.lang.String |
getICUDateClass(java.lang.String CalendarType)
Get the ICU4J Calendar type
|
static com.ibm.icu.util.ULocale |
getICULocale(java.util.Locale loc,
java.lang.String CalendarType)
Get the ICU4J ULocale
|
static com.ibm.icu.util.ULocale |
getICULocale(UserInfo user)
Get the ICU4J ULocale
|
static java.lang.String[] |
stripUnicode(java.lang.String[] list)
Strips the unicode Character U02BB
|
public static final java.lang.String GREGORIAN
public static final java.lang.String ISLAMIC
public static final java.lang.String HEBREW
public static final java.lang.String DOJO_ISLAMIC
public static final java.lang.String DOJO_HEBREW
public static final java.lang.String ICU_GREGORIAN
public static final java.lang.String ICU_ISLAMIC
public static final java.lang.String ICU_HEBREW
public static java.lang.String getDojoDatePackage(java.lang.String CalendarType)
Calendar
- Typepublic static java.lang.String getICUDateClass(java.lang.String CalendarType)
CalendarType
- public static com.ibm.icu.util.ULocale getICULocale(UserInfo user)
UserInfo
- public static com.ibm.icu.util.ULocale getICULocale(java.util.Locale loc, java.lang.String CalendarType)
Locale
- CalendarType
- public static com.ibm.icu.util.ULocale getDefaultICULocale()
public static com.ibm.icu.util.ULocale getDefaultICULocale(java.util.Locale loc)
Locale
- public static com.ibm.icu.util.Calendar getICUCalendar(com.ibm.icu.util.TimeZone zone, java.util.Locale loc, java.lang.String CalendarType)
TimeZone
- Locale
- CalendarType
- public static com.ibm.icu.util.Calendar getICUCalendar(java.util.Locale loc, java.lang.String CalendarType)
Locale
- CalendarType
- public static com.ibm.icu.util.Calendar getICUCalendar(UserInfo user)
UserInfo
- public static com.ibm.icu.util.Calendar getICUCalendar(java.util.TimeZone zone, java.util.Locale loc, java.lang.String CalendarType)
TimeZone
- Locale
- CalendarType
- public static com.ibm.icu.util.Calendar getDefaultICUCalendar()
public static com.ibm.icu.util.Calendar getDefaultICUCalendar(java.util.Locale loc)
Locale
- public static com.ibm.icu.util.Calendar getDefaultICUCalendar(com.ibm.icu.util.ULocale loc, com.ibm.icu.util.TimeZone tz)
Locale
- TimeZone
- public static com.ibm.icu.util.Calendar getDefaultICUCalendar(java.util.Locale loc, java.util.TimeZone tz)
Locale
- TimeZone
- public static java.lang.String[] stripUnicode(java.lang.String[] list)
String[]
- public static java.lang.String getFullMonthNameForMonth(int num, java.util.Locale loc)
num
- Month Number between 0 and 11 (where 0 is January)loc
- User's Local