回答編集履歴

1

出力

2018/01/21 01:48

投稿

swordone
swordone

スコア20651

test CHANGED
@@ -1 +1,25 @@
1
1
  `new Date(long値)`でいいのでは?
2
+
3
+
4
+
5
+ ```java
6
+
7
+ public static void main (String[] args) {
8
+
9
+ DateFormat format = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
10
+
11
+ System.out.println(format.format(new Date(1516618800000L)));
12
+
13
+ }
14
+
15
+ ```
16
+
17
+
18
+
19
+ 出力結果
20
+
21
+ 2018/01/22 11:00:00
22
+
23
+
24
+
25
+ 時刻は違うけど