src/org/nutz/lang/Times.java
public static String ts2S(long timestamp, String sf) {
        DateFormat format = new SimpleDateFormat(sf);
        return format.format(new Date(Long.parseLong(timestamp * 1000 + "")));
    }
public static String ts2S(long timestamp, String sf) {
        DateFormat format = new SimpleDateFormat(sf);
        return format.format(new Date(Long.parseLong(timestamp * 1000 + "")));
    }
public static String ts2S ( long timestamp , String sf ) { DateFormat format = new SimpleDateFormat ( sf ) ; return format . format ( new Date ( Long . parseLong ( timestamp * 1000 + "" ) ) ) ; }
Unix时间戳转String日期

@param timestamp
时间戳
@param sf
日期格式
@return 日期字符串
Unix时间戳转String日期