String recode_time = new java.text.SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new java.util.Date(data.getTimestamp() * 1000)); System.out.printf("%s get %s disk metrics at %s ", source, data.getEndpoint(), recode_time);