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");