Here you can find the source of getLogTimeFromMillis(Long millis)
public static String getLogTimeFromMillis(Long millis)
//package com.java2s; //License from project: Apache License public class Main { public static String getLogTimeFromMillis(Long millis) { return addLeadingZeros(String.valueOf(millis)); }//from w ww . j a va 2s. c om private static String addLeadingZeros(String str) { String nStr = str; while (nStr.length() < 15) { nStr = "0" + nStr; } //Logger.debug("logTime is " + str + " => " + nStr + " length " + str.length()); return nStr; } }