Here you can find the source of getLogCurrentTime()
public static String getLogCurrentTime()
//package com.java2s; import java.util.*; import java.text.*; public class Main { public static SimpleDateFormat logFormat = new SimpleDateFormat("MMddHHmm"); public static String getLogCurrentTime() { Date current = new Date(System.currentTimeMillis()); return logFormat.format(current); }/*from www .j a v a 2 s .c o m*/ }