会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
不敌你丶回眸一笑
博客园
首页
新随笔
联系
管理
订阅
2018年1月16日
long类型的转换为正常时间格式遇到的问题
摘要: 在开发过程中,获取到一个10位的long类型的时间,在转换时发现得到的时间不正确。 Date date = new Date(currentTime); // long类型转成Date类型 String strTime = new SimpleDateFormat(formatType).forma
阅读全文
posted @ 2018-01-16 16:07 刚刚好丶
阅读(686)
评论(0)
推荐(0)
编辑