private synchronized static String getTransFileDateTime() { try { Thread.sleep(1); } catch (InterruptedException e) { // TODO Auto-generated catch block e.printStackTrace(); } long time = System.currentTimeMillis(); SimpleDateFormat sdfTime
private synchronized static String getTransFileDateTime() {
try {
Thread.sleep(1);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
long time = System.currentTimeMillis();
SimpleDateFormat sdfTimeb = new SimpleDateFormat("yyyyMMddHHmmssSS");
Date d = new Date(time);
String formatStr = sdfTimeb.format(d);
return formatStr;
}