Java Long Number to Time getTime(Long time)

Here you can find the source of getTime(Long time)

Description

get Time

License

Apache License

Declaration

public static String getTime(Long time) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

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

public class Main {

    public static String getTime(Long time) {
        Date d = new Date(time);
        Format simpleFormat = new SimpleDateFormat("E dd MMM yyyy hh:mm:ss a");
        String date = simpleFormat.format(d);
        return date;
    }//from w ww. j  ava 2  s. co  m
}

Related

  1. getSMillon(long time)
  2. getSpeedString(long castTime, long bytes)
  3. getStrDateForLong(long time)
  4. getTextDate(long timeInMs)
  5. getTime(long nanos)
  6. getTime(long time, boolean getTimeOnly, boolean fileSystemSafe)
  7. getTimeFromLong(long diff)
  8. getTimeFromLong(long diff)
  9. getTimeLong()