Commit c062a49e authored by yanzg's avatar yanzg

修改日志打印功能,打印更加详细的日志

parent a8d9831c
......@@ -291,6 +291,18 @@ public class DateHelper {
return c.get(Calendar.DAY_OF_MONTH);
}
/**
* 获取日期
*
* @param date 需要处理的日期
* @return 获取的天数
*/
public static int getHour(Date date) {
Calendar c = Calendar.getInstance();
c.setTime(date);
return c.get(Calendar.HOUR_OF_DAY);
}
/**
* 获取当天的日期
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment