public String[] months() { return dtfi.monthsFull(); }
public String[] standaloneMonths() { return dtfi.monthsFullStandalone(); }
public String[] shortMonths() { return dtfi.monthsShort(); }
public String[] dateFormats() { return new String[] { dtfi.dateFormatFull(), dtfi.dateFormatLong(), dtfi.dateFormatMedium(), dtfi.dateFormatShort(), }; }
switch (predef) { case DATE_FULL: pattern = dtfi.dateFormatFull(); break; case DATE_LONG: pattern = dtfi.dateFormatLong(); break; case DATE_MEDIUM: pattern = dtfi.dateFormatMedium(); break; case DATE_SHORT: pattern = dtfi.dateFormatShort(); break; case DATE_TIME_FULL: pattern = dtfi.dateTimeFull(dtfi.timeFormatFull(), dtfi.dateFormatFull()); break; case DATE_TIME_LONG: pattern = dtfi.dateTimeLong(dtfi.timeFormatLong(), dtfi.dateFormatLong()); break; case DATE_TIME_MEDIUM: pattern = dtfi.dateTimeMedium(dtfi.timeFormatMedium(), dtfi.dateFormatMedium()); break; case DATE_TIME_SHORT: pattern = dtfi.dateTimeShort(dtfi.timeFormatShort(), dtfi.dateFormatShort()); break;
break; case 'p': retVal = LocaleInfo.getCurrentLocale().getDateTimeFormatInfo().ampms()[date.getHours() / 12]; break; case 's': break; case 'B': retVal = LocaleInfo.getCurrentLocale().getDateTimeFormatInfo().monthsFull()[date.getMonth()]; break; case 'b': case 'h': retVal = LocaleInfo.getCurrentLocale().getDateTimeFormatInfo().monthsShort()[date.getMonth()]; break; case 'A': retVal = LocaleInfo.getCurrentLocale().getDateTimeFormatInfo().weekdaysFull()[date.getDay()]; break; case 'a': retVal = LocaleInfo.getCurrentLocale().getDateTimeFormatInfo().weekdaysShort()[date.getDay()]; break; case 'c':
public void localize() { localized(LocaleInfo.getCurrentLocale().getDateTimeFormatInfo().weekdaysFull(), LocaleInfo.getCurrentLocale().getDateTimeFormatInfo().weekdaysShort()); }
public void localize() { localize(LocaleInfo.getCurrentLocale().getDateTimeFormatInfo().monthsFull(), LocaleInfo.getCurrentLocale().getDateTimeFormatInfo().monthsShort()); }
public String firstDayOfTheWeek() { return String.valueOf(dtfi.firstDayOfTheWeek() + 1); }
public String[] shortWeekdays() { return dtfi.weekdaysShort(); }
public String[] weekdays() { return dtfi.weekdaysFull(); }
public String[] ampms() { return dtfi.ampms(); }
switch (predef) { case DATE_FULL: pattern = dtfi.dateFormatFull(); break; case DATE_LONG: pattern = dtfi.dateFormatLong(); break; case DATE_MEDIUM: pattern = dtfi.dateFormatMedium(); break; case DATE_SHORT: pattern = dtfi.dateFormatShort(); break; case DATE_TIME_FULL: pattern = dtfi.dateTimeFull(dtfi.timeFormatFull(), dtfi.dateFormatFull()); break; case DATE_TIME_LONG: pattern = dtfi.dateTimeLong(dtfi.timeFormatLong(), dtfi.dateFormatLong()); break; case DATE_TIME_MEDIUM: pattern = dtfi.dateTimeMedium(dtfi.timeFormatMedium(), dtfi.dateFormatMedium()); break; case DATE_TIME_SHORT: pattern = dtfi.dateTimeShort(dtfi.timeFormatShort(), dtfi.dateFormatShort()); break;
break; case 'p': retVal = LocaleInfo.getCurrentLocale().getDateTimeFormatInfo().ampms()[date.getHours() / 12]; break; case 's': break; case 'B': retVal = LocaleInfo.getCurrentLocale().getDateTimeFormatInfo().monthsFull()[date.getMonth()]; break; case 'b': case 'h': retVal = LocaleInfo.getCurrentLocale().getDateTimeFormatInfo().monthsShort()[date.getMonth()]; break; case 'A': retVal = LocaleInfo.getCurrentLocale().getDateTimeFormatInfo().weekdaysFull()[date.getDay()]; break; case 'a': retVal = LocaleInfo.getCurrentLocale().getDateTimeFormatInfo().weekdaysShort()[date.getDay()]; break; case 'c':
public String[] dateFormats() { return new String[] { dtfi.dateFormatFull(), dtfi.dateFormatLong(), dtfi.dateFormatMedium(), dtfi.dateFormatShort(), }; }
public void localize() { localized(LocaleInfo.getCurrentLocale().getDateTimeFormatInfo().weekdaysFull(), LocaleInfo.getCurrentLocale().getDateTimeFormatInfo().weekdaysShort()); }
public void localize() { localize(LocaleInfo.getCurrentLocale().getDateTimeFormatInfo().monthsFull(), LocaleInfo.getCurrentLocale().getDateTimeFormatInfo().monthsShort()); }
public String firstDayOfTheWeek() { return String.valueOf(dtfi.firstDayOfTheWeek() + 1); }
public String[] shortWeekdays() { return dtfi.weekdaysShort(); }
public String[] weekdays() { return dtfi.weekdaysFull(); }