質問するログイン新規登録

回答編集履歴

1

ソース修正

2020/08/26 05:19

投稿

yureighost
yureighost

スコア2183

answer CHANGED
@@ -5,7 +5,9 @@
5
5
  long unixtime2 = new GregorianCalendar(2020, 8, 1).getTimeInMillis() / 1000L;
6
6
 
7
7
  System.out.println(dateFormat(unixtime1));
8
+ //25日14時間18分
8
9
  System.out.println(dateFormat(unixtime2));
10
+ //5日9時間41分
9
11
  }
10
12
 
11
13
  private static String dateFormat(long unixtime){