public static String getStringTimeMilli(){
String result = "";
String month_str = "";
String day_str = "";
String hour_str = "";
String minute_str = "";
String second_str = "";
String milliSecond_str = "";
Calendar c = Calendar.getInstance();
int year = c.get(Calendar.YEAR);
int month = (c.get(Calendar.MONTH)+1);
int day = c.get(Calendar.DATE);
int hour = c.get(Calendar.HOUR_OF_DAY);
int minute = c.get(Calendar.MINUTE);
int second = c.get(Calendar.SECOND);
int milliSecond = c.get(Calendar.MILLISECOND);
if(month<10){ month_str="0"+month; }else{ month_str=""+month; }
if(day<10){ day_str="0"+day; }else{ day_str=""+day; }
if(hour<10){ hour_str="0"+hour; }else{ hour_str=""+hour; }
if(minute<10){ minute_str="0"+minute; }else{ minute_str=""+minute; }
if(second<10){ second_str="0"+second; }else{ second_str=""+second; }
if(milliSecond<10){
milliSecond_str="00"+milliSecond;
}else{
if(milliSecond<100){
milliSecond_str="0"+milliSecond;
}else{
milliSecond_str=""+milliSecond;
}
}
result = year + month_str + day_str + hour_str + minute_str + second_str + milliSecond_str;
return result;
}