Here you can find the source of toSeconds(double value)
public static String toSeconds(double value)
//package com.java2s; //License from project: Apache License public class Main { public static String toSeconds(double value) { return String.format("%6.3fB", value); }/*from w w w . j ava 2s .co m*/ }