Java Long Number to Time getReadableDate(long longTime)

Here you can find the source of getReadableDate(long longTime)

Description

get Readable Date

License

Open Source License

Declaration

public static String getReadableDate(long longTime) 

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 {
    public static String getReadableDate(long longTime) {
        DateFormat dateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
        Date date = new Date(longTime);
        return dateFormat.format(date);
    }/* ww w . jav a  2  s  .  com*/
}

Related

  1. getElapsedTime(long startTime, long finishTime)
  2. getElapsedTimeSpecificationDescription(long sizeInBytes)
  3. getExpires(long maxAge)
  4. getHMSFromMills(long millSec)
  5. getOldCookieDate(long time)
  6. getServerTime(long offset)
  7. getShortTimeText(Long oldTime)
  8. getSimpleDate(long time)
  9. getSMillon(long time)