Here you can find the source of timeToTag(long milliSeconds)
public static String timeToTag(long milliSeconds)
//package com.java2s; //License from project: Open Source License import java.text.SimpleDateFormat; import java.util.Date; public class Main { public static String timeToTag(long milliSeconds) { SimpleDateFormat sdf = new SimpleDateFormat("mm:ss.SS"); Date d = new Date(milliSeconds); String text = sdf.format(d); text = text.substring(0, text.length() - 1); return text; }//from w ww. j a v a2 s .c om }