Here you can find the source of formatMilliseconds(Double milliseconds)
Parameter | Description |
---|---|
milliseconds | a parameter |
public static String formatMilliseconds(Double milliseconds)
//package com.java2s; //License from project: Open Source License public class Main { /**//from www . ja va2 s. c o m * Formats milliseconds in m:ss format * @param milliseconds * @return */ public static String formatMilliseconds(Double milliseconds) { milliseconds /= 1000; return String.format("%01.0f:%02.0f", milliseconds / 60, milliseconds % 60); } }