Java Second Format formatTime(double seconds)

Here you can find the source of formatTime(double seconds)

Description

format Time

License

Open Source License

Declaration

public static String formatTime(double seconds) 

Method Source Code

//package com.java2s;

import java.text.DecimalFormat;

public class Main {
    private static DecimalFormat df = new DecimalFormat("#0.00");

    public static String formatTime(double seconds) {
        return df.format(seconds) + " s";
    }/*from w  w  w  .  jav  a  2 s . c o m*/
}

Related

  1. formatSeconds(long time)
  2. formatSeconds(long time, String timerPrecisionId, boolean round)
  3. formatSecondsRegular(int seconds)
  4. formatSecondsWithHour(int seconds)
  5. formatTime(Date d, Locale locale, boolean withSeconds)
  6. formatTime(float seconds)
  7. formatTimeInSeconds(int v)
  8. formatTimeSecondsSinceEpoch(final long time, StringBuilder sbuffer)
  9. formatTimeSpanSeconds(long span)