复制内容到剪贴板 程序代码
//获取系统当前时间
SimpleDateFormat sdfTime = new SimpleDateFormat("kk:mm:ss");
String nowTime = sdfTime.format(new Date());
//获取时间中除冒号以外的其他值
StringBuffer sba = new StringBuffer();
//获取kk
String astartTime = startTime.substring(0, 2);
//获取mm
String bstartTime = startTime.substring(3, 5);
SimpleDateFormat sdfTime = new SimpleDateFormat("kk:mm:ss");
String nowTime = sdfTime.format(new Date());
//获取时间中除冒号以外的其他值
StringBuffer sba = new StringBuffer();
//获取kk
String astartTime = startTime.substring(0, 2);
//获取mm
String bstartTime = startTime.substring(3, 5);