Here you can find the source of getFmtCalendar(Calendar c, long betweenTimeout, StringBuilder sb)
private static void getFmtCalendar(Calendar c, long betweenTimeout, StringBuilder sb)
//package com.java2s; //License from project: Apache License import java.util.Calendar; public class Main { private static void getFmtCalendar(Calendar c, long betweenTimeout, StringBuilder sb) { sb.append("\tspan:"); sb.append(c.get(Calendar.MINUTE)); sb.append("m:"); sb.append(c.get(Calendar.SECOND)); sb.append("s:"); sb.append(c.get(Calendar.MILLISECOND)); sb.append("ms"); if (betweenTimeout > 0) { sb.append("(exceed "); sb.append(betweenTimeout);//from w w w . j a va2 s .c om sb.append("ms)"); } sb.append("."); } private static void getFmtCalendar(Calendar c, long betweenTimeout, int nResult, StringBuilder sb) { // applies sb.append("\tapplies:"); sb.append(nResult); sb.append(","); // span sb.append("span:"); sb.append(c.get(Calendar.MINUTE)); sb.append("m:"); sb.append(c.get(Calendar.SECOND)); sb.append("s:"); sb.append(c.get(Calendar.MILLISECOND)); sb.append("ms"); if (betweenTimeout > 0) { sb.append("(exceed "); sb.append(betweenTimeout); sb.append("ms)"); } sb.append("."); } }