This works very well: out.println(DurationFormatUtils.formatPeriod( new Date().getTime(), match.getStartingTime().getTime(),