Here you can find the source of formatIntoHHMMSS(long l)
public static String formatIntoHHMMSS(long l)
//package com.java2s; //License from project: Open Source License public class Main { public static String formatIntoHHMMSS(long l) { long hours = l / 3600, remainder = l % 3600, minutes = remainder / 60, seconds = remainder % 60; return ((hours < 10 ? "0" : "") + hours + "h" + (minutes < 10 ? "0" : "") + minutes + "m" + (seconds < 10 ? "0" : "") + seconds + "s"); }//w w w . j av a2s. c o m }