package com.hzzy.pqgl.util;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
public class LogUtil {
/**
* 获得当前时间
*
* @return
*/
public static String getCurrentTime() {
long time = System.currentTimeMillis();
Date d = new Date(time);
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
String currentTime = sdf.format(d);
return currentTime;
}
}