Here you can find the source of valueOfSecond(long time)
public static String valueOfSecond(long time)
//package com.java2s; /**/* w w w . j a v a 2 s. co m*/ * Copyright 2009-2010 GBCOM Co.,Ltd. All rights reserved. * GB PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */ public class Main { public static String valueOfSecond(long time) { long h = time / 3600; long m = (time % 3600) / 60; long s = (time % 3600) % 60; String value = h + "Basic_hour" + ":" + m + "Basic_min" + ":" + s + "Basic_sec"; return value; } }