Java Millisecond Convert getStringFromMillis(long timestamp)

Here you can find the source of getStringFromMillis(long timestamp)

Description

get String From Millis

License

Open Source License

Declaration

public static String getStringFromMillis(long timestamp) 

Method Source Code


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

import java.text.DateFormat;

import java.util.Date;

public class Main {
    public static String getStringFromMillis(long timestamp) {

        DateFormat df = DateFormat.getDateTimeInstance();
        return df.format(new Date(timestamp));
    }/*from www. j  a  va 2s  .  com*/
}

Related

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