Java Long Number to Time elapsedTimeToString(long elapsedTime)

Here you can find the source of elapsedTimeToString(long elapsedTime)

Description

elapsed Time To String

License

Open Source License

Declaration

public static String elapsedTimeToString(long elapsedTime) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.TimeZone;

public class Main {
    public static String elapsedTimeToString(long elapsedTime) {
        Date date = new Date(elapsedTime);
        DateFormat formatter = new SimpleDateFormat("HH:mm:ss");
        formatter.setTimeZone(TimeZone.getTimeZone("GMT"));
        return formatter.format(date);
    }//from   www. j av  a 2s.  c  o  m
}

Related

  1. convertUnixTime(long unixtime)
  2. convertUnixTimeStampToMySql(long timestamp)
  3. createCookie(String name, String value, String path, String domain, long stateTimeToLive)
  4. createFileDateTimeString(final Long ms)
  5. elapsedTime(long start, long end)
  6. formattaData(long date)
  7. formatTime(long date)
  8. formatTime(long ms)
  9. formatTimestampLong(long timestamp, String datepattern, TimeZone tz)