现在的位置: 首页 > 综合 > 正文

android获取系统时间

2013年08月19日 ⁄ 综合 ⁄ 共 144字 ⁄ 字号 评论关闭

Date CurDate=new Date(System.currentTimeMillis());
SimpleDateFormat format=new SimpleDateFormat("yyyy-MM-dd HH:mm");
String time=format.format(CurDate);

抱歉!评论已关闭.