您的位置:首页 > 其它

获取系统当前时间

2016-05-12 10:20 183 查看
//获取系统当前时间

private void setdates() {

SimpleDateFormat dateFormat=new SimpleDateFormat("yyyy年MM月dd日 HH:mm:ss");

Date date=new Date(System.currentTimeMillis());

String str2 = dateFormat.format(date);

t_date.setText(str2);

t_date.setTextSize(20);

Log.i(TAG, str2+"...");

}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: