static String formatTime(long time, String pattern) {
		Date date = new Date();
		date.setTime(time);
		return format(date, pattern);
	}
static String formatTime(long time, String pattern) {
		Date date = new Date();
		date.setTime(time);
		return format(date, pattern);
	}
static String formatTime ( long time , String pattern ) { Date date = new Date ( ) ; date . setTime ( time ) ; return format ( date , pattern ) ; }
Format timestamp according to given pattern.

@param time Timestamp.
@param pattern Pattern.
@return Formatted date.
Format timestamp according to given pattern .