//系统时间的文本框
Txt_sysTime=(TextView)findViewById(R.id.txt_Time);
//给文本框赋予当前系统的时间
long time =System.currentTimeMillis();
String strTime=getCurrentTime(time);
Txt_sysTime.setText(strTime);
//系统时间字符串的转化
public static String getCurrentTime(long date) {
SimpleDateFormat format = new SimpleDateFormat(“yyyy-MM-dd HH:mm:ss”);
String str = format.format(new Date(date));
return str;
}