/** * return a string formatted version of time <code>t</code> * rounding to <code>round</code> * * @param t * @param round * @return String value */ public static String valueOf(long t, int round) { TimeFormat f = new TimeFormat(t, round); return f.toString(); }
/** * return a string formatted version of time <code>t</code> * rounding to <code>round</code> * * @param t * @param round * @return String value */ public static String valueOf(long t, int round) { TimeFormat f = new TimeFormat(t, round); return f.toString(); }
TimeFormat format = new TimeFormat(); units.add(new NumberTickUnit(1, format, 2)); units.add(new NumberTickUnit(2, format, 2));
/** * 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()); }
/** * format with a date time * @param format * @param time * @return the string */ 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()); }