本文共 135 字,大约阅读时间需要 1 分钟。
Date d = new Date();
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
String now = df.format(d);
now即为当前时间。。。。
转载地址:http://zgxli.baihongyu.com/