public static String time2String(java.sql.Timestamp time, Locale locale) {
        DateFormat df = DateFormat.getDateTimeInstance(dateStyle, timeStyle, locale);
        return df.format(time);
    }
public static String time2String ( java . sql . Timestamp time , Locale locale ) { DateFormat df = DateFormat . getDateTimeInstance ( dateStyle , timeStyle , locale ) ; return df . format ( time ) ; }
Turn a Timestamp into a string using the specified locale.