Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
通过使用下面的代码,我得到 43753-07-31T04:40:44-0500
long installed = 1318562444444; SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ"); String dateString = formatter.format(new Date(installed * 1000L));
帮助 :(
已安装在毫秒内。
试试这个..
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");