标签:
时间处理工具类
package com.tools; //时间处理类 import java.util.Date; import java.text.SimpleDateFormat; public class Time { public static String getTime(){ SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); String time=sdf.format(new Date()); return time; } public static String getNoFormatTime(){ SimpleDateFormat sdf=new SimpleDateFormat("yyyyMMddHHmmsshh"); String time=sdf.format(new Date()); return time; } }
标签:
原文地址:http://www.cnblogs.com/aicpcode/p/4194920.html