/**
* 获取系统当前时间(毫秒数)
*/
long l = System.currentTimeMillis();
/**
* 获取系统当前时间(年-月-日 上午/下午 X时X分)(可指定)
*/
SimpleDateFormat format=new SimpleDateFormat();
String time=format.format(new Date());
转载于:https://blog.51cto.com/liuxudong1001/1715676
/**
* 获取系统当前时间(毫秒数)
*/
long l = System.currentTimeMillis();
/**
* 获取系统当前时间(年-月-日 上午/下午 X时X分)(可指定)
*/
SimpleDateFormat format=new SimpleDateFormat();
String time=format.format(new Date());
转载于:https://blog.51cto.com/liuxudong1001/1715676