Java Millisecond Convert getTime(long millis)

Here you can find the source of getTime(long millis)

Description

get Time

License

Open Source License

Declaration

public static String getTime(long millis) 

Method Source Code


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

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

public class Main {
    static DateFormat formattor = new SimpleDateFormat("HH:mm:ss");

    public static String getTime(long millis) {
        return formattor.format(new Date(millis));
    }/*from w  w  w .  j a  v  a  2 s  .  c  o  m*/
}

Related

  1. getDurationBreakdown(long durationInMillis)
  2. getDurationMillisecond(Date date1, Date date2)
  3. getHumanDisplayForTimediff(Long diffMillis)
  4. getNice(long timeMillisecGMT)
  5. getStringFromMillis(long timestamp)
  6. getTime(long time, boolean withMilliseconds)
  7. getTimeByMillis(long now)
  8. getTimeFromMillisAsNICSDate(long timeInMillis)
  9. getTimeInMillisFromNicsDateString(String dateString)