* or -1 to indicate no time
* @param loc the locale for the format
*/
private static DateFormat get(int dateStyle, int timeStyle, ULocale loc) {
if((timeStyle != -1 && (timeStyle & RELATIVE)>0) || (dateStyle != -1 && (dateStyle & RELATIVE)>0)) {
RelativeDateFormat r = new RelativeDateFormat(timeStyle, dateStyle /* offset? */, loc);
return r;
}
if (timeStyle < -1 || timeStyle > 3) {
throw new IllegalArgumentException("Illegal time style " + timeStyle);