日期:2014-05-17 浏览次数:20858 次
public static long GetTicks(String epochStr) { //convert the target-epoch time to a well-format string String date = new java.text.SimpleDateFormat("yyyy/MM/dd/HH/mm/ss").format(new Date (Long.parseLong(epochStr))); String[] ds=date.split("/"); //start of the ticks time Calendar calStart=Calendar.getInstance(); calStart.set(1, 1, 3, 0, 0, 0); //the target t