adnroid 获取系统时间
2015-10-15 16:22
260 查看
SimpleDateFormat formatter = new SimpleDateFormat ("yyyyMMdd"); //括号里面写什么样子的格式,就会返回什么样子的日期时间
Date curDate = new Date(System.currentTimeMillis());//获取当前时间
String str = formatter.format(curDate); //转成string格式
Date curDate = new Date(System.currentTimeMillis());//获取当前时间
String str = formatter.format(curDate); //转成string格式
相关文章推荐
- 如何计算NSAttributeString和NSString的label高度
- 如何让ViewPager页面不滑动
- Can't open a connection to site 'SYB_BACKUP'. See the error log file in the ASE boot directory. Msg
- java定时器的几种用法
- Install Maven
- linux系统修改系统时间与时区
- CSS3文本效果
- mysql备份脚本完成后且发送信息到邮箱
- C#常用开发技巧
- iOS 【UIKit-给Button添加监听方法】
- 文件内容搜索器
- cgroup实践
- Android adb连接异常情况处理
- [转]Oracle数据块体系的详细介绍
- shell
- forbes八月底对Andrew Ng的采访(zz)
- httpclient4.x 使用连接池发送https请求使用总结
- Webview打开本地图片选择器解决方案
- Linux下搭建Testlink1.9.14
- IOS-16-支付宝开发:商家签约流程与私钥公钥等获取