Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String.format("%d:%02d:%02d", s/3600, (s%3600)/60, (s%60))
- long duration = 4 * 60 * 60 * 1000;
- SimpleDateFormat sdf = new SimpleDateFormat("HH:mm:ss.SSS", Locale.getDefault());
- log.info("Duration: " + sdf.format(new Date(duration - TimeZone.getDefault().getRawOffset())));
Add Comment
Please, Sign In to add comment