code: public static String toDateString(long time) {
  		GregorianCalendar cal = new GregorianCalendar(0, 0, 0);
  		cal.setTimeInMillis(time);
  		return toDateString(cal);
  	}
docs: Convert a Unix time (in milliseconds) to a date string