Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static String convertTime(long totalS) {
- long s = totalS % 60;
- long m = (totalS / 60) % 60;
- long h = (totalS / (60 * 60)) % 24;
- return String.format("%02d:%02d:%02d", h, m, s);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement