code: static String formatTime(long time, String pattern) {
  		Date date = new Date();
  		date.setTime(time);
  		return format(date, pattern);
  	}
docs: Format timestamp according to given pattern.
  
  @param time Timestamp.
  @param pattern Pattern.
  @return Formatted date.