/** format with a date time */ public static String format(String format, long time) { TimeFormat f = new TimeFormat(time); return f.parse( format, f.getDays(), f.getHours(), f.getMinutes(), f.getSeconds(), f.getMilliseconds()); }