これは非常にうまく機能します:
out.println(DurationFormatUtils.formatPeriod(
new Date().getTime(),
match.getStartingTime().getTime(),
"d H"));
でも今はもっといいフォーマットが欲しいです
out.println(DurationFormatUtils.formatPeriod(
new Date().getTime(),
match.getStartingTime().getTime(),
"d days H hours left"));
しかし、アスペクトとして、これは次のように出力を与えます
45a011014時間1101残り
この問題の簡単な解決策はありますか?