Java Millisecond Convert getTimestamp(long milliseconds)

Here you can find the source of getTimestamp(long milliseconds)

Description

get Timestamp

License

Open Source License

Declaration

public static String getTimestamp(long milliseconds) 

Method Source Code

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

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

public class Main {
    public static String getTimestamp(long milliseconds) {
        SimpleDateFormat dformat = new SimpleDateFormat(
                "YYYY:MM:dd:HH:mm:ss:SS");
        Date d = new Date(milliseconds);
        String dstr = dformat.format(d);

        return dstr;
    }/*from w  w w  . java2  s . c  o  m*/
}

Related

  1. getTimeByMillis(long now)
  2. getTimeFromMillisAsNICSDate(long timeInMillis)
  3. getTimeInMillisFromNicsDateString(String dateString)
  4. getTimeMillis(String dateStr)
  5. getTimeMillis(String time)
  6. getTimestampMillis(Locale locale)
  7. getTimeStr(final long millis)
  8. getTimeString(long millis)
  9. getTimeString(long timelnMillis)