Here you can find the source of getDateTimeString(long time_milis)
public static String getDateTimeString(long time_milis)
//package com.java2s; import java.text.SimpleDateFormat; import java.util.Date; public class Main { public static String getDateTimeString(long time_milis) { SimpleDateFormat sdf = getSimpleDateFormat(); return sdf.format(new Date(time_milis)); }/* w w w. ja va 2s. c om*/ public static SimpleDateFormat getSimpleDateFormat() { return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS"); } }