Long型で切っておいて、1000をかける。
Integer型だとうまくいきません。
Long unixTime;
unixTime = 1456371643;
DateTime dateInstance = DateTime.newInstance(unixTime * 1000);
// 2016/02/25 12:10
Go to list of users who liked
More than 5 years have passed since last update.
Long型で切っておいて、1000をかける。
Integer型だとうまくいきません。
Long unixTime;
unixTime = 1456371643;
DateTime dateInstance = DateTime.newInstance(unixTime * 1000);
// 2016/02/25 12:10
Register as a new user and use Qiita more conveniently
Go to list of users who liked