/** * This is a convenience method in addition to {@link #toHumanFormat(long, long)}, except the second parameter is * always now. * * @param fromTime start date. This is a representation of time in milliseconds from January 1 1970. * @return human imprecise representation of time difference between the <code>fromTime</code> and now. */ public static String toHumanFormat(long fromTime) { return toHumanFormat(fromTime, new Date().getTime()); }
/** * This is a convenience method in addition to {@link #toHumanFormat(long, long)}, except the second parameter is * always now. * * @param fromTime start date. This is a representation of time in milliseconds from January 1 1970. * @return human imprecise representation of time difference between the <code>fromTime</code> and now. */ public static String toHumanFormat(long fromTime) { return toHumanFormat(fromTime, new Date().getTime()); }
/** * This is a convenience method in addition to {@link #toHumanFormat(long, long)}, except the second parameter is * always now. * * @param fromTime start date. This is a representation of time in milliseconds from January 1 1970. * @return human imprecise representation of time difference between the <code>fromTime</code> and now. */ public static String toHumanFormat(long fromTime) { return toHumanFormat(fromTime, new Date().getTime()); }