Java tutorial
//package com.java2s; import java.sql.Timestamp; import java.text.SimpleDateFormat; import java.util.Locale; public class Main { private static SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd kk:mm:ss", Locale.ENGLISH); private static String getCSTimeString(String timestamp) { return simpleDateFormat.format(new Timestamp(Long.parseLong(timestamp) * 1000)); } }