Java Number Format Pattern formattedDuration(long pStartTime)

Here you can find the source of formattedDuration(long pStartTime)

Description

formatted Duration

License

Open Source License

Declaration

public static String formattedDuration(long pStartTime) 

Method Source Code


//package com.java2s;
import java.text.DecimalFormat;

public class Main {
    public static String formattedDuration(long pStartTime) {
        DecimalFormat df = new DecimalFormat("#,###,###,##0.000");

        return df.format((System.currentTimeMillis() - pStartTime) / 1000.00);
    }//  w  w  w .  j  a  v  a  2s.c o m
}

Related

  1. formatNumber(Number num)
  2. formatNumber(Number number)
  3. FormatNumber(Object o,String patter)
  4. formatoDecimalPunto(String numero)
  5. formatQuantity(Long quantity)
  6. formatThousands(String inValue)
  7. formatTime(long endTime, long startTime)
  8. formatTokens(long tokens)
  9. formatValue(int value)