Java Second valueOfSecond(long time)

Here you can find the source of valueOfSecond(long time)

Description

value Of Second

License

Open Source License

Declaration

public static String valueOfSecond(long time) 

Method Source Code

//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;

    }
}

Related

  1. timeToSeconds(String in)
  2. timeToSeconds(String textTime)
  3. timeToSeconds(String time)
  4. trimMiliSeconds(String time)
  5. validateSecond(int second)